Not exploding when logstash agent isn't available

This commit is contained in:
Dan Buch 2013-07-08 11:54:37 -04:00
parent 38327558d6
commit 742189985d

View File

@ -44,7 +44,7 @@ func newLogstashLogger() (*golog.Logger, error) {
logger := golog.NewLogger("")
tcpProcessor, err := golog.NewTcpProcessorAt(":55784", golog.LOG_DEBUG)
if err != nil {
return nil, err
log.Printf("WARNING: %+v\n", err)
}
logger.AddProcessor("tcp", tcpProcessor)