Skip to content

Commit cb20605

Browse files
sagor999roboquat
authored andcommitted
add log when starting workspace with pvc
1 parent b1c03ca commit cb20605

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,6 +1366,16 @@ export class WorkspaceStarter {
13661366
let volumeSnapshotInfo = new VolumeSnapshotInfo();
13671367
const volumeSnapshots = await this.workspaceDb.trace(traceCtx).findVolumeSnapshotById(volumeSnapshotId);
13681368
if (volumeSnapshots !== undefined) {
1369+
log.info(
1370+
{
1371+
lastInstanceId: lastValidWorkspaceInstanceId,
1372+
volSnapshotId: volumeSnapshotId,
1373+
snapshotId: volumeSnapshots.id,
1374+
volumeHandle: volumeSnapshots.volumeHandle,
1375+
workspaceId: workspace.id,
1376+
},
1377+
"starting workspace with volume snapshot info",
1378+
);
13691379
volumeSnapshotInfo.setVolumeSnapshotName(volumeSnapshots.id);
13701380
volumeSnapshotInfo.setVolumeSnapshotHandle(volumeSnapshots.volumeHandle);
13711381
}

0 commit comments

Comments
 (0)