Skip to content

Commit

Permalink
Remove useless check for auth token
Browse files Browse the repository at this point in the history
  • Loading branch information
mendess committed Nov 28, 2024
1 parent c314109 commit 430375e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/context/logging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 430375e

Please sign in to comment.