diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-10-21 20:47:02 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-10-21 20:47:02 +0900 |
| commit | 42e0b168e3d75389dfb968aebf9f5629d64782f9 (patch) | |
| tree | e6b430205213c62bc06275c6d84e6037d40f5c3f /internal/early.go | |
| parent | 380d1f45851b7dffb963c51da96a17ba41f3cfb8 (diff) | |
fmsg: produce all output through fmsg
The behaviour of print functions from package fmt is not thread safe. Functions provided by fmsg wrap around Logger methods. This makes prefix much cleaner and makes it easy to deal with future changes to logging.
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal/early.go')
| -rw-r--r-- | internal/early.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/early.go b/internal/early.go index 218105f2..81ca49cd 100644 --- a/internal/early.go +++ b/internal/early.go @@ -2,9 +2,10 @@ package internal import ( "errors" - "fmt" "io/fs" "os" + + "git.ophivana.moe/security/fortify/internal/fmsg" ) const ( @@ -13,7 +14,7 @@ const ( var SdBootedV = func() bool { if v, err := SdBooted(); err != nil { - fmt.Println("warn: read systemd marker:", err) + fmsg.Println("cannot read systemd marker:", err) return false } else { return v |
