mirror of
https://github.com/rclone/rclone.git
synced 2025-08-12 06:59:29 +02:00
fs: refactor base log method name for improved consistency
This commit is contained in:
committed by
Nick Craig-Wood
parent
dfc2c98bbf
commit
4a54cc134f
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user