Log just the message, not the stringified version of the whole log line.

This commit is contained in:
Alex Payne 2014-09-13 13:03:15 -07:00
parent 0a2a97ea82
commit 29c4caff54
1 changed files with 1 additions and 0 deletions

View File

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