Fix Papertrail bug

Conflicts:
	hooks/papertrail/papertrail.go
This commit is contained in:
Peter Olds 2014-11-05 22:04:58 -07:00 committed by Simon Eskildsen
parent 1f2ba2c631
commit f9e0c0dd4a
1 changed files with 1 additions and 1 deletions

View File

@ -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 {