Skip to content

Commit

Permalink
chore(coderd): provisionerdserver: downgrade heartbeat failure log to…
Browse files Browse the repository at this point in the history
… Warn instead of Error (#13061)
  • Loading branch information
johnstcn committed Apr 24, 2024
1 parent 4682355 commit a518047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coderd/provisionerdserver/provisionerdserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func (s *server) heartbeatLoop() {
start := s.timeNow()
hbCtx, hbCancel := context.WithTimeout(s.lifecycleCtx, s.heartbeatInterval)
if err := s.heartbeat(hbCtx); err != nil && !database.IsQueryCanceledError(err) {
s.Logger.Error(hbCtx, "heartbeat failed", slog.Error(err))
s.Logger.Warn(hbCtx, "heartbeat failed", slog.Error(err))
}
hbCancel()
elapsed := s.timeNow().Sub(start)
Expand Down

0 comments on commit a518047

Please sign in to comment.