mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
Merge pull request #398 from oivoodoo/master
Register kafka output plugin in case of having passed settings
This commit is contained in:
+3
-1
@@ -143,5 +143,7 @@ func InitPlugins() {
|
||||
registerPlugin(NewHTTPOutput, options, &Settings.outputHTTPConfig)
|
||||
}
|
||||
|
||||
registerPlugin(NewKafkaOutput, "", &Settings.outputKafkaConfig)
|
||||
if Settings.outputKafkaConfig.host != "" && Settings.outputKafkaConfig.topic != "" {
|
||||
registerPlugin(NewKafkaOutput, "", &Settings.outputKafkaConfig)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user