From 29c4caff543b6311ff5df0fdb9aab0424343d817 Mon Sep 17 00:00:00 2001 From: Alex Payne Date: Sat, 13 Sep 2014 13:03:15 -0700 Subject: [PATCH] Log just the message, not the stringified version of the whole log line. --- hooks/papertrail/papertrail.go | 1 + 1 file changed, 1 insertion(+) diff --git a/hooks/papertrail/papertrail.go b/hooks/papertrail/papertrail.go index ca445bb..3c12991 100644 --- a/hooks/papertrail/papertrail.go +++ b/hooks/papertrail/papertrail.go @@ -31,6 +31,7 @@ func NewPapertrailHook(host string, port int, appName string) (*PapertrailHook, func (hook *PapertrailHook) Fire(entry *logrus.Entry) error { defer hook.UDPConn.Close() date := time.Now().Format(format) + payload := fmt.Sprintf("<22> %s %s: [%s] %s", date, hook.AppName, entry.Data["level"], entry.Message) line, err := entry.String() if err != nil {