Skip to content

Commit

Permalink
fix log format
Browse files Browse the repository at this point in the history
  • Loading branch information
devcorpio committed Mar 4, 2024
1 parent d305b86 commit 0b8a902
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions heartbeat/monitors/wrappers/monitorstate/tracker.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (t *Tracker) GetCurrentState(sf stdfields.StdMonitorFields, rc RetryConfig)
}
var loaderError LoaderError
if errors.As(err, &loaderError) && !loaderError.Retry {
logp.L().Warnf("could not load last externally recorded state: %w", err)
logp.L().Warnf("could not load last externally recorded state: %v", loaderError)
break
}

Expand All @@ -120,7 +120,7 @@ func (t *Tracker) GetCurrentState(sf stdfields.StdMonitorFields, rc RetryConfig)
if rc.waitFn != nil {
sleepFor = rc.waitFn()
}
logp.L().Warnf("could not load last externally recorded state, will retry again in %d milliseconds: %w", sleepFor.Milliseconds(), err)
logp.L().Warnf("could not load last externally recorded state, will retry again in %d milliseconds: %v", sleepFor.Milliseconds(), err)
time.Sleep(sleepFor)
}
if err != nil {
Expand Down

0 comments on commit 0b8a902

Please sign in to comment.