From b9d48b4a9300b948362787b90cf3fb7ae77636b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Mon, 20 Feb 2017 18:05:15 +0200 Subject: log: add support for trace level, exit on critical --- log/syslog.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'log/syslog.go') 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))) -- cgit v1.2.3