Skip to content

Commit b8b83e3

Browse files
committed
Remove variables from dequeue log message
1 parent b41129a commit b8b83e3

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

internal-packages/run-engine/src/engine/systems/dequeueSystem.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,11 +135,21 @@ export class DequeueSystem {
135135

136136
if (isExecuting(snapshot.executionStatus)) {
137137
this.$.logger.error(
138-
`RunEngine.dequeueFromWorkerQueue(): Run is not in a valid state to be dequeued: ${runId}\n ${snapshot.id}:${snapshot.executionStatus}`
138+
`RunEngine.dequeueFromWorkerQueue(): Run is not in a valid state to be dequeued`,
139+
{
140+
runId,
141+
snapshotId: snapshot.id,
142+
executionStatus: snapshot.executionStatus,
143+
}
139144
);
140145
} else {
141146
this.$.logger.warn(
142-
`RunEngine.dequeueFromWorkerQueue(): Run is in an expected not valid state to be dequeued: ${runId}\n ${snapshot.id}:${snapshot.executionStatus}`
147+
`RunEngine.dequeueFromWorkerQueue(): Run is in an expected not valid state to be dequeued`,
148+
{
149+
runId,
150+
snapshotId: snapshot.id,
151+
executionStatus: snapshot.executionStatus,
152+
}
143153
);
144154
}
145155

0 commit comments

Comments
 (0)