diff --git a/main.go b/main.go index e6e856b..2a47806 100644 --- a/main.go +++ b/main.go @@ -16,6 +16,7 @@ import ( "git.gensokyo.uk/security/fortify/dbus" "git.gensokyo.uk/security/fortify/fst" + "git.gensokyo.uk/security/fortify/helper/bwrap" "git.gensokyo.uk/security/fortify/internal" "git.gensokyo.uk/security/fortify/internal/app" "git.gensokyo.uk/security/fortify/internal/fmsg" @@ -308,6 +309,10 @@ func runApp(config *fst.Config) { rs := new(app.RunState) ctx, cancel := context.WithCancel(context.Background()) + if fmsg.Verbose() { + bwrap.CPrintln = fmsg.Println + } + // handle signals for graceful shutdown sig := make(chan os.Signal, 2) signal.Notify(sig, syscall.SIGINT, syscall.SIGTERM)