Skip to content

Commit 17daa16

Browse files
ref(node-native): Use debug instead of logger (#16956)
resolves #16945 Co-authored-by: Cursor Agent <[email protected]>
1 parent e727db4 commit 17daa16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/node-native/src/event-loop-block-integration.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Worker } from 'node:worker_threads';
22
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';
44
import type { NodeClient } from '@sentry/node';
55
import { registerThread, threadPoll } from '@sentry-internal/node-native-stacktrace';
66
import type { ThreadBlockedIntegrationOptions, WorkerStartData } from './common';
@@ -9,7 +9,7 @@ import { POLL_RATIO } from './common';
99
const DEFAULT_THRESHOLD_MS = 1_000;
1010

1111
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);
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

Comments
 (0)