Skip to content

Commit

Permalink
Temporary workaround for log15 API breakage
Browse files Browse the repository at this point in the history
log15 broke their v2 API earlier today, this change should get things
building again until upstream log15 fixes the API breakage.

Related: inconshreveable/log15#139

Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Oct 2, 2017
1 parent 40f0f63 commit 7c88b00
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions shared/logging/log_posix.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
package logging

import (
slog "log/syslog"

log "gopkg.in/inconshreveable/log15.v2"
)

Expand All @@ -13,11 +15,11 @@ func getSystemHandler(syslog string, debug bool, format log.Format) log.Handler
if !debug {
return log.LvlFilterHandler(
log.LvlInfo,
log.Must.SyslogHandler(syslog, format),
log.Must.SyslogHandler(slog.LOG_INFO, syslog, format),
)
}

return log.Must.SyslogHandler(syslog, format)
return log.Must.SyslogHandler(slog.LOG_INFO, syslog, format)
}

return nil
Expand Down

0 comments on commit 7c88b00

Please sign in to comment.