Improve ws upgrade logging (#6967)

Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
Alexey Zinoviev 2024-10-17 14:01:39 +04:00 committed by GitHub
parent 2ae1b6d4e0
commit 7d91ffee77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View File

@ -1290,7 +1290,8 @@ export async function getPendingWorkspace (
workspaceName: result.workspaceName, workspaceName: result.workspaceName,
operation, operation,
region, region,
version workspaceVersion: result.version,
requestedVersion: version
}) })
} }

View File

@ -232,7 +232,8 @@ export class WorkspaceWorker {
ctx.info('---UPGRADING----', { ctx.info('---UPGRADING----', {
workspace: ws.workspace, workspace: ws.workspace,
version: this.version, workspaceVersion: ws.version,
requestedVersion: this.version,
region: this.region region: this.region
}) })
@ -263,7 +264,8 @@ export class WorkspaceWorker {
) )
ctx.info('---UPGRADE-DONE---------', { ctx.info('---UPGRADE-DONE---------', {
workspace: ws.workspace, workspace: ws.workspace,
version: this.version, oldWorkspaceVersion: ws.version,
requestedVersion: this.version,
region: this.region, region: this.region,
time: Date.now() - t time: Date.now() - t
}) })
@ -278,7 +280,8 @@ export class WorkspaceWorker {
ctx.error('---UPGRADE-FAILED---------', { ctx.error('---UPGRADE-FAILED---------', {
workspace: ws.workspace, workspace: ws.workspace,
version: this.version, oldWorkspaceVersion: ws.version,
requestedVersion: this.version,
region: this.region, region: this.region,
time: Date.now() - t time: Date.now() - t
}) })