From 430375e66c5a07fecc8139f8c9846c5b7b9cf39b Mon Sep 17 00:00:00 2001 From: pmendes Date: Thu, 28 Nov 2024 12:14:24 +0000 Subject: [PATCH] Remove useless check for auth token --- src/context/logging.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/context/logging.ts b/src/context/logging.ts index fe56098..640fcc1 100644 --- a/src/context/logging.ts +++ b/src/context/logging.ts @@ -179,9 +179,6 @@ export class WshimLogger { private loggingEndpoint: string; constructor(env: Bindings, sampleRate: number = 1) { - if (!env.WSHIM_TOKEN) { - throw new Error('Service token is required for WshimLogger'); - } if (typeof sampleRate !== 'number' || isNaN(sampleRate) || sampleRate < 0 || sampleRate > 1) { throw new Error('Sample rate must be a number between 0 and 1'); }