aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-02-17 17:54:28 +0900
committerOphestra <cat@gensokyo.uk>2025-02-17 18:17:55 +0900
commitb1e1d5627e6532ec719c761846d7f38fe93fcadd (patch)
tree2a308de9ee6a53b536ad00877158dc959e9cdea4 /internal/app
parent3ae2ab652e9cd1d6250dbde8ae0f9b9fe90afc72 (diff)
system: wrap console output functions
This eliminates all fmsg imports from internal/system. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app')
-rw-r--r--internal/app/seal.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/internal/app/seal.go b/internal/app/seal.go
index fb3b3ce2..4cd31298 100644
--- a/internal/app/seal.go
+++ b/internal/app/seal.go
@@ -252,8 +252,12 @@ func (a *app) Seal(config *fst.Config) error {
// store activity begins after Start is called and must end before Wait
seal.store = state.NewMulti(seal.RunDirPath)
- // initialise system interface with full uid
+ // initialise system interface with os uid
seal.sys.I = system.New(seal.sys.user.uid)
+ seal.sys.I.IsVerbose = fmsg.Load
+ seal.sys.I.Verbose = fmsg.Verbose
+ seal.sys.I.Verbosef = fmsg.Verbosef
+ seal.sys.I.WrapErr = fmsg.WrapError
// pass through enablements
seal.et = config.Confinement.Enablements