chore(coderd): provisionerdserver: downgrade heartbeat failure log to Warn instead of Error (#13061)

This commit is contained in:
Cian Johnston 2024-04-24 09:36:36 +01:00 committed by GitHub
parent 4682355eed
commit a518047f10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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)