make backend debug top level arg

This commit is contained in:
Thibault bui Koechlin 2020-06-26 10:08:31 +02:00
parent 84b497e923
commit a23dcef5d5

View file

@ -99,6 +99,13 @@ func NewBackendPlugin(outputConfig map[string]string) (*BackendManager, error) {
// Add the interface and Init()
newPlugin.funcs = bInterface
// Merge backend config from main config file
// Merge backend config from main config file
if v, ok := outputConfig["debug"]; ok {
newPlugin.Config["debug"] = v
} else {
newPlugin.Config["debug"] = "false"
}
if v, ok := outputConfig["max_records"]; ok {
newPlugin.Config["max_records"] = v
} else {