diff options
author | Jakob Unterwurzacher | 2021-05-18 18:38:23 +0200 |
---|---|---|
committer | Jakob Unterwurzacher | 2021-05-18 18:38:23 +0200 |
commit | 0650a512bbf5a49031d47afac538a92e0994757a (patch) | |
tree | 53ea16ddce8f7b714301a929f8374a20921779a8 /internal | |
parent | 5da20da977ae5c870bc2009cd540cb5fe9aae79b (diff) |
fsck: redirect go-fuse noise to syslog
Diffstat (limited to 'internal')
-rw-r--r-- | internal/tlog/log.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/tlog/log.go b/internal/tlog/log.go index 0eee704..6d32a6b 100644 --- a/internal/tlog/log.go +++ b/internal/tlog/log.go @@ -136,6 +136,7 @@ func init() { } // SwitchToSyslog redirects the output of this logger to syslog. +// p = facility | severity func (l *toggledLogger) SwitchToSyslog(p syslog.Priority) { w, err := syslog.New(p, ProgramName) if err != nil { @@ -150,7 +151,8 @@ func (l *toggledLogger) SwitchToSyslog(p syslog.Priority) { // SwitchLoggerToSyslog redirects the default log.Logger that the go-fuse lib uses // to syslog. -func SwitchLoggerToSyslog(p syslog.Priority) { +func SwitchLoggerToSyslog() { + p := syslog.LOG_USER | syslog.LOG_WARNING w, err := syslog.New(p, ProgramName) if err != nil { Warn.Printf("SwitchLoggerToSyslog: %v", err) |