Skip to content

Commit

Permalink
Fix warning log
Browse files Browse the repository at this point in the history
make test complains with:
> check/health_check.go:115: Warn call has possible formatting directive %s
  • Loading branch information
andpol committed Jan 29, 2019
1 parent 63eb161 commit 6df1a7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check/health_check.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func (check *HealthCheck) CheckHealth(brokerUpdates chan<- Update, clusterUpdate
func newUpdate(report StatusReport, name string) Update {
data, err := report.Json()
if err != nil {
log.Warn("Error while marshaling %s status: %s", name, err.Error())
log.Warnf("Error while marshaling %s status: %s", name, err.Error())
data = simpleStatus(report.Summary())
}
return Update{report.Summary(), data}
Expand Down

0 comments on commit 6df1a7f

Please sign in to comment.