diff --git a/coderd/workspaceagentsrpc.go b/coderd/workspaceagentsrpc.go index 0167b875b3879..bdd244b4a7958 100644 --- a/coderd/workspaceagentsrpc.go +++ b/coderd/workspaceagentsrpc.go @@ -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 {