Skip to content

Commit cd6096f

Browse files
committed
Log error on failed agent disconnect update
1 parent 3dbbc71 commit cd6096f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

coderd/workspaceagents.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,13 @@ func (api *API) workspaceAgentCoordinate(rw http.ResponseWriter, r *http.Request
637637
Time: database.Now(),
638638
Valid: true,
639639
}
640-
_ = updateConnectionTimes(ctx)
640+
err := updateConnectionTimes(ctx)
641+
if err != nil {
642+
api.Logger.Error(ctx, "failed to update agent disconnect time",
643+
slog.Error(err),
644+
slog.F("workspace", build.WorkspaceID),
645+
)
646+
}
641647
api.publishWorkspaceUpdate(ctx, build.WorkspaceID)
642648
}()
643649

0 commit comments

Comments
 (0)