11import { Worker } from 'node:worker_threads' ;
22import type { Contexts , Event , EventHint , IntegrationFn } from '@sentry/core' ;
3- import { defineIntegration , getFilenameToDebugIdMap , getIsolationScope , logger } from '@sentry/core' ;
3+ import { debug , defineIntegration , getFilenameToDebugIdMap , getIsolationScope } from '@sentry/core' ;
44import type { NodeClient } from '@sentry/node' ;
55import { registerThread , threadPoll } from '@sentry-internal/node-native-stacktrace' ;
66import type { ThreadBlockedIntegrationOptions , WorkerStartData } from './common' ;
@@ -9,7 +9,7 @@ import { POLL_RATIO } from './common';
99const DEFAULT_THRESHOLD_MS = 1_000 ;
1010
1111function log ( message : string , ...args : unknown [ ] ) : void {
12- logger . log ( `[Sentry Block Event Loop] ${ message } ` , ...args ) ;
12+ debug . log ( `[Sentry Block Event Loop] ${ message } ` , ...args ) ;
1313}
1414
1515/**
@@ -103,7 +103,7 @@ async function _startWorker(
103103 }
104104
105105 const options : WorkerStartData = {
106- debug : logger . isEnabled ( ) ,
106+ debug : debug . isEnabled ( ) ,
107107 dsn,
108108 tunnel : initOptions . tunnel ,
109109 environment : initOptions . environment || 'production' ,
0 commit comments