From 2a6183b10643fb31bd0a15314b4987517cc3eb07 Mon Sep 17 00:00:00 2001 From: Didip Kerabat Date: Sun, 27 Jul 2014 22:43:21 -0700 Subject: [PATCH] Updated to use new style of log level. --- hooks/syslog/syslog.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hooks/syslog/syslog.go b/hooks/syslog/syslog.go index d7b1343..2a18ce6 100644 --- a/hooks/syslog/syslog.go +++ b/hooks/syslog/syslog.go @@ -49,11 +49,11 @@ func (hook *SyslogHook) Fire(entry *logrus.Entry) error { func (hook *SyslogHook) Levels() []logrus.Level { return []logrus.Level{ - logrus.Panic, - logrus.Fatal, - logrus.Error, - logrus.Warn, - logrus.Info, - logrus.Debug, + logrus.PanicLevel, + logrus.FatalLevel, + logrus.ErrorLevel, + logrus.WarnLevel, + logrus.InfoLevel, + logrus.DebugLevel, } }