diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-02-16 17:26:09 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-02-16 18:51:53 +0900 |
| commit | e599b5583dd821ed26bdfc01f7f67d4a317b9843 (patch) | |
| tree | b444a3dc964814360e6779bc10b30f2e599b537c /internal/app/seal.go | |
| parent | 33a4ab11c226c736c0d8b2644fbbe27a5ca045e9 (diff) | |
fmsg: implement suspend in writer
This removes the requirement to call fmsg.Exit on every exit path, and enables direct use of the "log" package. However, fmsg.BeforeExit is still encouraged when possible to catch exit on suspended output.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/seal.go')
| -rw-r--r-- | internal/app/seal.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/app/seal.go b/internal/app/seal.go index c78add93..fb3b3ce2 100644 --- a/internal/app/seal.go +++ b/internal/app/seal.go @@ -191,7 +191,7 @@ func (a *app) Seal(config *fst.Config) error { // map sandbox config to bwrap if config.Confinement.Sandbox == nil { - fmsg.VPrintln("sandbox configuration not supplied, PROCEED WITH CAUTION") + fmsg.Verbose("sandbox configuration not supplied, PROCEED WITH CAUTION") // permissive defaults conf := &fst.SandboxConfig{ @@ -264,7 +264,7 @@ func (a *app) Seal(config *fst.Config) error { } // verbose log seal information - fmsg.VPrintf("created application seal for uid %s (%s) groups: %v, command: %s", + fmsg.Verbosef("created application seal for uid %s (%s) groups: %v, command: %s", seal.sys.user.us, seal.sys.user.username, config.Confinement.Groups, config.Command) // seal app and release lock |
