Skip to content

Commit 470d6c2

Browse files
committed
add log info
1 parent eb1e4cc commit 470d6c2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

components/server/src/jobs/workspace-gc.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,13 @@ export class WorkspaceGarbageCollector implements Job {
130130
workspaces.map((ws) =>
131131
this.workspaceService
132132
.hardDeleteWorkspace(ws.ownerId, ws.id)
133-
.catch((err) => log.error("failed to hard-delete workspace", err)),
133+
.catch((err) =>
134+
log.error(
135+
{ userId: ws.ownerId, workspaceId: ws.id },
136+
"failed to hard-delete workspace",
137+
err,
138+
),
139+
),
134140
), // TODO(gpl) This should be a system user/service account instead of ws owner
135141
);
136142

0 commit comments

Comments
 (0)