aboutsummaryrefslogtreecommitdiffstats
path: root/log/syslog.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-02-21 00:05:15 +0800
committerPéter Szilágyi <peterke@gmail.com>2017-02-23 18:00:03 +0800
commitb9d48b4a9300b948362787b90cf3fb7ae77636b4 (patch)
tree9ed9d16374bd6c7f2cadd0a193e16fc5bc5c9ee3 /log/syslog.go
parentec7f81f4bc11c6f8203ec1d3055c9a09a244ff43 (diff)
downloaddexon-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.go2
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)))