Skip to content

Commit 5afea4a

Browse files
committed
wip
1 parent 2abc4c7 commit 5afea4a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

components/server/src/workspace/workspace-starter.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ import { SYSTEM_USER } from "../authorization/authorizer";
131131
import { EnvVarService, ResolvedEnvVars } from "../user/env-var-service";
132132
import { RedlockAbortSignal } from "redlock";
133133
import { getExperimentsClientForBackend } from "@gitpod/gitpod-protocol/lib/experiments/configcat-server";
134+
import { TrustedValue } from "@gitpod/gitpod-protocol/lib/util/scrubbing";
134135

135136
export interface StartWorkspaceOptions extends GitpodServer.StartWorkspaceOptions {
136137
excludeFeatureFlags?: NamedWorkspaceFeatureFlag[];
@@ -420,7 +421,9 @@ export class WorkspaceStarter {
420421
)
421422
.catch((err) => {
422423
if (RedisMutex.isLockError(err)) {
423-
log.warn({ instanceId }, "unable to acquire lock for workspace instance start");
424+
log.warn({ instanceId }, "unable to acquire lock for workspace instance start", err, {
425+
a: new TrustedValue(err),
426+
});
424427
return;
425428
}
426429
});
@@ -582,9 +585,10 @@ export class WorkspaceStarter {
582585
// due to the reconciliation loop we might have already started the workspace, especially in the "pending" phase
583586
const workspaceAlreadyExists = await this.existsWithWsManager(ctx, instance);
584587
if (workspaceAlreadyExists) {
585-
log.warn(
588+
log.debug(
586589
{ instanceId: instance.id, workspaceId: instance.workspaceId },
587590
"workspace already exists, not starting again",
591+
{ phase: instance.status.phase },
588592
);
589593
return;
590594
}

0 commit comments

Comments
 (0)