diff options
Diffstat (limited to 'internal/tlog/log.go')
-rw-r--r-- | internal/tlog/log.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/tlog/log.go b/internal/tlog/log.go index 720bb88..f6c0acf 100644 --- a/internal/tlog/log.go +++ b/internal/tlog/log.go @@ -53,7 +53,7 @@ type toggledLogger struct { prefix string postfix string - *log.Logger + Logger *log.Logger } func (l *toggledLogger) Printf(format string, v ...interface{}) { @@ -125,7 +125,7 @@ func (l *toggledLogger) SwitchToSyslog(p syslog.Priority) { if err != nil { Warn.Printf("SwitchToSyslog: %v", err) } else { - l.SetOutput(w) + l.Logger.SetOutput(w) } } |