diff --git a/packages/solidstart/src/config/withSentry.ts b/packages/solidstart/src/config/withSentry.ts index a18e5841d958..0c4352182fcb 100644 --- a/packages/solidstart/src/config/withSentry.ts +++ b/packages/solidstart/src/config/withSentry.ts @@ -1,4 +1,4 @@ -import { logger } from '@sentry/core'; +import { debug } from '@sentry/core'; import type { Nitro } from 'nitropack'; import { addSentryPluginToVite } from '../vite/sentrySolidStartVite'; import type { SentrySolidStartPluginOptions } from '../vite/types'; @@ -55,7 +55,7 @@ export function withSentry( await addDynamicImportEntryFileWrapper({ nitro, rollupConfig: config, sentryPluginOptions }); sentrySolidStartPluginOptions.debug && - logger.log( + debug.log( 'Wrapping the server entry file with a dynamic `import()`, so Sentry can be preloaded before the server initializes.', ); } else { diff --git a/packages/solidstart/src/server/utils.ts b/packages/solidstart/src/server/utils.ts index 956a0a3c4653..e4c70fef633b 100644 --- a/packages/solidstart/src/server/utils.ts +++ b/packages/solidstart/src/server/utils.ts @@ -1,5 +1,5 @@ import type { EventProcessor, Options } from '@sentry/core'; -import { logger } from '@sentry/core'; +import { debug } from '@sentry/core'; import { flush, getGlobalScope } from '@sentry/node'; import { DEBUG_BUILD } from '../common/debug-build'; @@ -9,11 +9,11 @@ export async function flushIfServerless(): Promise { if (isServerless) { try { - DEBUG_BUILD && logger.log('Flushing events...'); + DEBUG_BUILD && debug.log('Flushing events...'); await flush(2000); - DEBUG_BUILD && logger.log('Done flushing events'); + DEBUG_BUILD && debug.log('Done flushing events'); } catch (e) { - DEBUG_BUILD && logger.log('Error while flushing events:\n', e); + DEBUG_BUILD && debug.log('Error while flushing events:\n', e); } } } @@ -46,7 +46,7 @@ export function filterLowQualityTransactions(options: Options): void { } // Filter out transactions for build assets if (event.transaction?.match(/^GET \/_build\//)) { - options.debug && logger.log('SolidStartLowQualityTransactionsFilter filtered transaction', event.transaction); + options.debug && debug.log('SolidStartLowQualityTransactionsFilter filtered transaction', event.transaction); return null; } return event;