diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-09-29 09:30:57 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-09-29 09:30:57 +0900 |
| commit | 71e70b7b5feb94aab5d99d9a3c2bea54537632c4 (patch) | |
| tree | cb720d345d86b21136bdad24b4d4b083d6fef207 /internal/app | |
| parent | afa1a8043eecc1849bbb7213f9cd8bbcabc06899 (diff) | |
internal/app/paths: do not print messages
This change was missed while merging the rest of the logging changes.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app')
| -rw-r--r-- | internal/app/finalise.go | 2 | ||||
| -rw-r--r-- | internal/app/paths.go | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/internal/app/finalise.go b/internal/app/finalise.go index 08fab978..708df056 100644 --- a/internal/app/finalise.go +++ b/internal/app/finalise.go @@ -275,7 +275,7 @@ func (k *outcome) finalise(ctx context.Context, msg container.Msg, config *hst.C // TODO(ophestra): revert this after params to shim share := &shareHost{seal: k} - copyPaths(k.syscallDispatcher, msg, &share.sc, hsu.MustIDMsg(msg)) + copyPaths(k.syscallDispatcher, &share.sc, hsu.MustIDMsg(msg)) msg.Verbosef("process share directory at %q, runtime directory at %q", share.sc.SharePath, share.sc.RunDirPath) var mapuid, mapgid *stringPair[int] diff --git a/internal/app/paths.go b/internal/app/paths.go index 442317cc..267d0eab 100644 --- a/internal/app/paths.go +++ b/internal/app/paths.go @@ -8,10 +8,10 @@ import ( ) // CopyPaths populates a [hst.Paths] struct. -func CopyPaths(msg container.Msg, v *hst.Paths, userid int) { copyPaths(direct{}, msg, v, userid) } +func CopyPaths(v *hst.Paths, userid int) { copyPaths(direct{}, v, userid) } // copyPaths populates a [hst.Paths] struct. -func copyPaths(k syscallDispatcher, msg container.Msg, v *hst.Paths, userid int) { +func copyPaths(k syscallDispatcher, v *hst.Paths, userid int) { const xdgRuntimeDir = "XDG_RUNTIME_DIR" if tempDir, err := container.NewAbs(k.tempdir()); err != nil { @@ -21,7 +21,6 @@ func copyPaths(k syscallDispatcher, msg container.Msg, v *hst.Paths, userid int) } v.SharePath = v.TempDir.Append("hakurei." + strconv.Itoa(userid)) - msg.Verbosef("process share directory at %q", v.SharePath) r, _ := k.lookupEnv(xdgRuntimeDir) if a, err := container.NewAbs(r); err != nil { @@ -32,5 +31,4 @@ func copyPaths(k syscallDispatcher, msg container.Msg, v *hst.Paths, userid int) v.RuntimePath = a v.RunDirPath = v.RuntimePath.Append("hakurei") } - msg.Verbosef("runtime directory at %q", v.RunDirPath) } |
