Skip to content

Commit 9fbc501

Browse files
Replace logger with debug in Pino transport and fix minor syntax in rollup config
Co-authored-by: aprasad <[email protected]>
1 parent baef982 commit 9fbc501

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

dev-packages/rollup-utils/npmHelpers.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export function makeBaseNPMConfig(options = {}) {
9393
}
9494

9595
return true;
96-
}
96+
},
9797
},
9898

9999
plugins: [nodeResolvePlugin, sucrasePlugin, debugBuildStatementReplacePlugin, rrwebBuildPlugin, cleanupPlugin],

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, isPrimitive, debug, 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)