Don't disconnect on every Fire()

This commit is contained in:
Alex Payne 2014-09-13 13:04:25 -07:00
parent 91f92800d7
commit dbf7fad1dc
1 changed files with 0 additions and 1 deletions

View File

@ -29,7 +29,6 @@ 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 {
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)