mirror of https://github.com/coder/coder.git
chore(coderd): provisionerdserver: downgrade heartbeat failure log to Warn instead of Error (#13061)
This commit is contained in:
parent
4682355eed
commit
a518047f10
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue