Explorar o código

make backend debug top level arg

Thibault bui Koechlin %!s(int64=5) %!d(string=hai) anos
pai
achega
a23dcef5d5
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  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 {