Skip to content

Commit

Permalink
fix log messages to handle format strings
Browse files Browse the repository at this point in the history
  • Loading branch information
dgonyier committed Sep 19, 2024
1 parent e601423 commit dfd649c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/cnf/ran/gitopsztp/tests/ztp-bios-day-zero.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@ var _ = Describe("ZTP BIOS Configuration Tests", Label(tsparams.LabelBiosDayZero
setting, ok := hfsCurrentSettings[param]
if !ok {
// By(fmt.Sprintf("Current settings does not have param %s", param))
glog.V(tsparams.LogLevel).Info("Current settings does not have param %s", param)
glog.V(tsparams.LogLevel).Infof("Current settings does not have param %s", param)

continue
}

requestedSetting := value.String()
if requestedSetting == setting {
// By(fmt.Sprintf("Requested setting matches current: %s=%s", param, setting))
glog.V(tsparams.LogLevel).Info("Requested setting matches current: %s=%s", param, setting)
glog.V(tsparams.LogLevel).Infof("Requested setting matches current: %s=%s", param, setting)
} else {
glog.V(tsparams.LogLevel).Info(
glog.V(tsparams.LogLevel).Infof(
"Requested setting %s value %s does not match current value %s",
param,
requestedSetting,
Expand Down

0 comments on commit dfd649c

Please sign in to comment.