fs: refactor base log method name for improved consistency

This commit is contained in:
albertony
2024-06-07 12:42:52 +02:00
committed by Nick Craig-Wood
parent dfc2c98bbf
commit 4a54cc134f
5 changed files with 13 additions and 13 deletions

View File

@ -26,7 +26,7 @@ func startSystemdLog() bool {
}
log.SetFlags(flags)
// TODO: Use the native journal.Print approach rather than a custom implementation
fs.LogPrint = func(level fs.LogLevel, text string) {
fs.LogOutput = func(level fs.LogLevel, text string) {
text = fmt.Sprintf("<%s>%-6s: %s", systemdLogPrefix(level), level, text)
_ = log.Output(4, text)
}