1
1
import { Worker } from 'node:worker_threads' ;
2
2
import 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' ;
4
4
import type { NodeClient } from '@sentry/node' ;
5
5
import { registerThread , threadPoll } from '@sentry-internal/node-native-stacktrace' ;
6
6
import type { ThreadBlockedIntegrationOptions , WorkerStartData } from './common' ;
@@ -9,7 +9,7 @@ import { POLL_RATIO } from './common';
9
9
const DEFAULT_THRESHOLD_MS = 1_000 ;
10
10
11
11
function log ( message : string , ...args : unknown [ ] ) : void {
12
- logger . log ( `[Sentry Block Event Loop] ${ message } ` , ...args ) ;
12
+ debug . log ( `[Sentry Block Event Loop] ${ message } ` , ...args ) ;
13
13
}
14
14
15
15
/**
@@ -103,7 +103,7 @@ async function _startWorker(
103
103
}
104
104
105
105
const options : WorkerStartData = {
106
- debug : logger . isEnabled ( ) ,
106
+ debug : debug . isEnabled ( ) ,
107
107
dsn,
108
108
tunnel : initOptions . tunnel ,
109
109
environment : initOptions . environment || 'production' ,
0 commit comments