From 93d7095df36504c678531a8a8945ecd40b965ffa Mon Sep 17 00:00:00 2001 From: James Watkins-Harvey Date: Fri, 1 Sep 2023 18:27:34 -0400 Subject: [PATCH] Remove diagnostic code --- packages/worker/src/worker.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/worker/src/worker.ts b/packages/worker/src/worker.ts index 33c8fd151..7074639c7 100644 --- a/packages/worker/src/worker.ts +++ b/packages/worker/src/worker.ts @@ -1,4 +1,4 @@ -import crypto, { randomUUID } from 'node:crypto'; +import crypto from 'node:crypto'; import fs from 'node:fs/promises'; import * as path from 'node:path'; import * as vm from 'node:vm'; @@ -425,8 +425,6 @@ export class Worker { protected readonly tracer: otel.Tracer; protected readonly workflowCodecRunner: WorkflowCodecRunner; - private readonly workerId = randomUUID(); - /** * Create a new Worker. * This method initiates a connection to the server and will throw (asynchronously) on connection failure. @@ -749,7 +747,7 @@ export class Worker { } protected set state(state: State) { - this.log.info('Worker state changed', { state, workerId: this.workerId }); + this.log.info('Worker state changed', { state }); this.stateSubject.next(state); }