aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/output.go
blob: 9d6133a710eee00341b41f50facef2540f459b21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package internal

import (
	"git.gensokyo.uk/security/hakurei/internal/hlog"
	"git.gensokyo.uk/security/hakurei/sandbox"
	"git.gensokyo.uk/security/hakurei/sandbox/seccomp"
	"git.gensokyo.uk/security/hakurei/system"
)

func InstallFmsg(verbose bool) {
	hlog.Store(verbose)
	sandbox.SetOutput(hlog.Output{})
	system.SetOutput(hlog.Output{})
	if verbose {
		seccomp.SetOutput(hlog.Verbose)
	}
}