@@ -131,6 +131,7 @@ import { SYSTEM_USER } from "../authorization/authorizer";
131
131
import { EnvVarService , ResolvedEnvVars } from "../user/env-var-service" ;
132
132
import { RedlockAbortSignal } from "redlock" ;
133
133
import { getExperimentsClientForBackend } from "@gitpod/gitpod-protocol/lib/experiments/configcat-server" ;
134
+ import { TrustedValue } from "@gitpod/gitpod-protocol/lib/util/scrubbing" ;
134
135
135
136
export interface StartWorkspaceOptions extends GitpodServer . StartWorkspaceOptions {
136
137
excludeFeatureFlags ?: NamedWorkspaceFeatureFlag [ ] ;
@@ -420,7 +421,9 @@ export class WorkspaceStarter {
420
421
)
421
422
. catch ( ( err ) => {
422
423
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
+ } ) ;
424
427
return ;
425
428
}
426
429
} ) ;
@@ -582,9 +585,10 @@ export class WorkspaceStarter {
582
585
// due to the reconciliation loop we might have already started the workspace, especially in the "pending" phase
583
586
const workspaceAlreadyExists = await this . existsWithWsManager ( ctx , instance ) ;
584
587
if ( workspaceAlreadyExists ) {
585
- log . warn (
588
+ log . debug (
586
589
{ instanceId : instance . id , workspaceId : instance . workspaceId } ,
587
590
"workspace already exists, not starting again" ,
591
+ { phase : instance . status . phase } ,
588
592
) ;
589
593
return ;
590
594
}
0 commit comments