Skip to content

Commit

Permalink
fix: reduce ping log level
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Oct 3, 2024
1 parent 4ee6f2d commit 2a0ecf0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions node/pkg/checker/ping/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (app *App) Start(ctx context.Context) {
log.Debug().Msg("connecting ICMP Pinger")
err := endpoint.run()
if err != nil {
log.Error().Err(err).Msg("failed to ping endpoint")
log.Info().Err(err).Msg("failed to ping endpoint")
app.ResultsBuffer <- PingResult{
Address: endpoint.Address,
Success: false,
Expand All @@ -185,14 +185,14 @@ func (app *App) Start(ctx context.Context) {
}

if result.Delay > time.Duration(app.ThresholdFactor*app.RTTAvg[result.Address]) {
log.Error().Any("result", result).Msg("ping failed")
log.Info().Any("result", result).Msg("ping failed")
app.FailCount[result.Address] += 1
} else {
log.Debug().Any("result", result).Msg("ping success")
app.FailCount[result.Address] = 0
}
} else {
log.Error().Any("result", result).Msg("failed to ping endpoint")
log.Info().Any("result", result).Msg("failed to ping endpoint")
app.FailCount[result.Address] += 1
}

Expand Down

0 comments on commit 2a0ecf0

Please sign in to comment.