Skip to content

Commit

Permalink
log: add log detail
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Aug 23, 2024
1 parent cdd5ec1 commit 521b364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/pkg/checker/ping/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func (app *App) Start(ctx context.Context) {
return
case result := <-app.ResultsBuffer:
if result.Success && result.Delay < app.MaxDelay {
log.Error().Any("result", result).Msg("failed due to slow response")
log.Error().Any("result", result).Dur("delay", result.Delay).Msg("failed due to slow response")
app.FailCount[result.Address] = 0
} else {
app.FailCount[result.Address] += 1
Expand Down

0 comments on commit 521b364

Please sign in to comment.