From f9e0c0dd4aec8f179cb6dc4f2aea811f36b58f54 Mon Sep 17 00:00:00 2001 From: Peter Olds Date: Wed, 5 Nov 2014 22:04:58 -0700 Subject: [PATCH] Fix Papertrail bug Conflicts: hooks/papertrail/papertrail.go --- hooks/papertrail/papertrail.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/papertrail/papertrail.go b/hooks/papertrail/papertrail.go index 48e2fea..12c56f2 100644 --- a/hooks/papertrail/papertrail.go +++ b/hooks/papertrail/papertrail.go @@ -30,7 +30,7 @@ func NewPapertrailHook(host string, port int, appName string) (*PapertrailHook, // Fire is called when a log event is fired. func (hook *PapertrailHook) Fire(entry *logrus.Entry) error { date := time.Now().Format(format) - payload := fmt.Sprintf("<22> %s %s: [%s] %s", date, hook.AppName, entry.Data["level"], entry.Message) + payload := fmt.Sprintf("<22> %s %s: [%s] %s", date, hook.AppName, entry.Level, entry.Message) bytesWritten, err := hook.UDPConn.Write([]byte(payload)) if err != nil {