diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-02-21 00:05:15 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-02-23 18:00:03 +0800 |
commit | b9d48b4a9300b948362787b90cf3fb7ae77636b4 (patch) | |
tree | 9ed9d16374bd6c7f2cadd0a193e16fc5bc5c9ee3 /log/syslog.go | |
parent | ec7f81f4bc11c6f8203ec1d3055c9a09a244ff43 (diff) | |
download | dexon-b9d48b4a9300b948362787b90cf3fb7ae77636b4.tar dexon-b9d48b4a9300b948362787b90cf3fb7ae77636b4.tar.gz dexon-b9d48b4a9300b948362787b90cf3fb7ae77636b4.tar.bz2 dexon-b9d48b4a9300b948362787b90cf3fb7ae77636b4.tar.lz dexon-b9d48b4a9300b948362787b90cf3fb7ae77636b4.tar.xz dexon-b9d48b4a9300b948362787b90cf3fb7ae77636b4.tar.zst dexon-b9d48b4a9300b948362787b90cf3fb7ae77636b4.zip |
log: add support for trace level, exit on critical
Diffstat (limited to 'log/syslog.go')
-rw-r--r-- | log/syslog.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/log/syslog.go b/log/syslog.go index 4f1097ff9..71a17b30b 100644 --- a/log/syslog.go +++ b/log/syslog.go @@ -38,6 +38,8 @@ func sharedSyslog(fmtr Format, sysWr *syslog.Writer, err error) (Handler, error) syslogFn = sysWr.Info case LvlDebug: syslogFn = sysWr.Debug + case LvlTrace: + syslogFn = func(m string) error { return nil } // There's no syslog level for trace } s := strings.TrimSpace(string(fmtr.Format(r))) |