Skip to content

Commit

Permalink
change Debugf to Errorf for error in config files
Browse files Browse the repository at this point in the history
  • Loading branch information
KalmanMeth committed Oct 24, 2022
1 parent 6356b97 commit 5073747
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/confgen/extract.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ func (cg *ConfGen) parseExtract(extract *map[string]interface{}) (*aggregate.Def
aggregateExtract := (*extract)["aggregates"]
b, err := jsoniterJson.Marshal(&aggregateExtract)
if err != nil {
log.Debugf("jsoniterJson.Marshal err: %v ", err)
log.Errorf("jsoniterJson.Marshal err: %v ", err)
return nil, nil, err
}

var jsonNetworkAggregate aggregate.Definitions
err = config.JsonUnmarshalStrict(b, &jsonNetworkAggregate)
if err != nil {
log.Debugf("Unmarshal aggregate.Definitions err: %v ", err)
log.Errorf("Unmarshal aggregate.Definitions err: %v ", err)
return nil, nil, err
}

Expand All @@ -49,14 +49,14 @@ func (cg *ConfGen) parseExtract(extract *map[string]interface{}) (*aggregate.Def
}
b, err = jsoniterJson.Marshal(&timebasedExtract)
if err != nil {
log.Debugf("jsoniterJson.Marshal err: %v ", err)
log.Errorf("jsoniterJson.Marshal err: %v ", err)
return nil, nil, err
}

var jsonTimebasedTopKs api.ExtractTimebased
err = config.JsonUnmarshalStrict(b, &jsonTimebasedTopKs)
if err != nil {
log.Debugf("Unmarshal api.ExtractTimebased err: %v ", err)
log.Errorf("Unmarshal api.ExtractTimebased err: %v ", err)
return nil, nil, err
}

Expand Down

0 comments on commit 5073747

Please sign in to comment.