mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
chore(coderd): provisionerdserver: downgrade heartbeat failure log to Warn instead of Error (#13061)
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user