From ced81183efb31f2453a503e5ae3195dea12d1e34 Mon Sep 17 00:00:00 2001 From: Alex Payne Date: Sat, 13 Sep 2014 13:52:24 -0700 Subject: [PATCH] Proper log levels. --- hooks/papertrail/papertrail.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/hooks/papertrail/papertrail.go b/hooks/papertrail/papertrail.go index add8dcd..71c5835 100644 --- a/hooks/papertrail/papertrail.go +++ b/hooks/papertrail/papertrail.go @@ -54,10 +54,11 @@ func (hook *PapertrailHook) Fire(entry *logrus.Entry) error { // Levels returns the available logging levels. func (hook *PapertrailHook) Levels() []logrus.Level { return []logrus.Level{ - logrus.Panic, - logrus.Fatal, - logrus.Error, - logrus.Warn, - logrus.Info, + logrus.PanicLevel, + logrus.FatalLevel, + logrus.ErrorLevel, + logrus.WarnLevel, + logrus.InfoLevel, + logrus.DebugLevel, } }