Add json message output for kafka

This commit is contained in:
Alexandr Korsak
2016-11-01 17:51:15 +03:00
parent 9b96dc20df
commit 41d3ce48a3
5 changed files with 67 additions and 19 deletions
+5 -3
View File
@@ -84,9 +84,11 @@ func (p *ESPlugin) Init(URI string) {
p.done = make(chan bool)
p.indexor.Start()
// Only start the ErrorHandler goroutine when in verbose mode
// no need to burn ressources otherwise
go p.ErrorHandler()
if Settings.verbose {
// Only start the ErrorHandler goroutine when in verbose mode
// no need to burn ressources otherwise
go p.ErrorHandler()
}
log.Println("Initialized Elasticsearch Plugin")
return