浏览代码

... don't copy if params are not here :<

Thibault bui Koechlin 5 年之前
父节点
当前提交
9e83076b12
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      pkg/outputs/ouputs.go

+ 6 - 6
pkg/outputs/ouputs.go

@@ -327,17 +327,17 @@ func NewOutput(config *OutputFactory) (*Output, error) {
 	log.Debugf("loading backend plugins ...")
 	log.Debugf("loading backend plugins ...")
 	//turn the *OutputFactory into a map[string]string for less constraint
 	//turn the *OutputFactory into a map[string]string for less constraint
 	backendConfig := map[string]string{
 	backendConfig := map[string]string{
-		"backend":         config.BackendFolder,
-		"flush":           strconv.FormatBool(config.Flush),
-		"debug":           strconv.FormatBool(config.Debug)}
+		"backend": config.BackendFolder,
+		"flush":   strconv.FormatBool(config.Flush),
+		"debug":   strconv.FormatBool(config.Debug)}
 
 
 	if config.MaxRecords != "" {
 	if config.MaxRecords != "" {
-		backendConfig["max_records"] = config.MaxRecords,
+		backendConfig["max_records"] = config.MaxRecords
 	}
 	}
 	if config.MaxRecordsAge != "" {
 	if config.MaxRecordsAge != "" {
-		backendConfig["max_records_age"] = config.MaxRecordsAge,
+		backendConfig["max_records_age"] = config.MaxRecordsAge
 	}
 	}
-	
+
 	output.bManager, err = cwplugin.NewBackendPlugin(backendConfig)
 	output.bManager, err = cwplugin.NewBackendPlugin(backendConfig)
 	if err != nil {
 	if err != nil {
 		return nil, errors.Wrap(err, "failed to load backend plugin")
 		return nil, errors.Wrap(err, "failed to load backend plugin")