Skip to content

Commit

Permalink
Use Errorf to format this log line as %s expects (#34374)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-hanna authored Feb 24, 2025
1 parent 526645b commit 2954f2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func (ia *inventoryagent) getCorrectConfig(name string, localConf model.Reader,
cfg := viper.New()
cfg.SetConfigType("yaml")
if err = cfg.ReadConfig(strings.NewReader(remoteConfig)); err != nil {
ia.log.Error("Could not parse '%s' configuration: %s", name, err)
ia.log.Errorf("Could not parse '%s' configuration: %s", name, err)
} else {
return cfg
}
Expand Down

0 comments on commit 2954f2c

Please sign in to comment.