Przeglądaj źródła

make backend debug top level arg

Thibault bui Koechlin 5 lat temu
rodzic
commit
a23dcef5d5
1 zmienionych plików z 7 dodań i 0 usunięć
  1. 7 0
      pkg/cwplugin/backend.go

+ 7 - 0
pkg/cwplugin/backend.go

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