Not exploding when logstash agent isn't available
This commit is contained in:
parent
38327558d6
commit
742189985d
@ -44,7 +44,7 @@ func newLogstashLogger() (*golog.Logger, error) {
|
|||||||
logger := golog.NewLogger("")
|
logger := golog.NewLogger("")
|
||||||
tcpProcessor, err := golog.NewTcpProcessorAt(":55784", golog.LOG_DEBUG)
|
tcpProcessor, err := golog.NewTcpProcessorAt(":55784", golog.LOG_DEBUG)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
log.Printf("WARNING: %+v\n", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
logger.AddProcessor("tcp", tcpProcessor)
|
logger.AddProcessor("tcp", tcpProcessor)
|
||||||
|
Loading…
Reference in New Issue
Block a user