Skip to content

Commit 92e55a9

Browse files
ref(pino-transport): Use debug instead of logger (#16957)
resolves #16942 --------- Co-authored-by: Cursor Agent <[email protected]>
1 parent d8faaa2 commit 92e55a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/pino-transport/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { LogSeverityLevel } from '@sentry/core';
2-
import { _INTERNAL_captureLog, isPrimitive, logger, normalize } from '@sentry/core';
2+
import { _INTERNAL_captureLog, debug, isPrimitive, normalize } from '@sentry/core';
33
import type buildType from 'pino-abstract-transport';
44
import * as pinoAbstractTransport from 'pino-abstract-transport';
55
import { DEBUG_BUILD } from './debug-build';
@@ -95,7 +95,7 @@ interface PinoSourceConfig {
9595
* the stable Sentry SDK API and can be changed or removed without warning.
9696
*/
9797
export function createSentryPinoTransport(options?: SentryPinoTransportOptions): ReturnType<typeof buildType> {
98-
DEBUG_BUILD && logger.log('Initializing Sentry Pino transport');
98+
DEBUG_BUILD && debug.log('Initializing Sentry Pino transport');
9999
const capturedLogLevels = new Set(options?.logLevels ?? DEFAULT_CAPTURED_LEVELS);
100100

101101
return build(

0 commit comments

Comments
 (0)