mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
fix: stop logging error on query canceled (#12017)
Fixes flake seen here: https://github.com/coder/coder/actions/runs/7782340530/job/21218566449
This commit is contained in:
@ -473,7 +473,9 @@ func (m *agentConnectionMonitor) monitor(ctx context.Context) {
|
||||
err = m.updateConnectionTimes(ctx)
|
||||
if err != nil {
|
||||
reason = err.Error()
|
||||
m.logger.Error(ctx, "failed to update agent connection times", slog.Error(err))
|
||||
if !database.IsQueryCanceledError(err) {
|
||||
m.logger.Error(ctx, "failed to update agent connection times", slog.Error(err))
|
||||
}
|
||||
return
|
||||
}
|
||||
if connectionStatusChanged {
|
||||
|
Reference in New Issue
Block a user