diff --git a/packages/react/src/errorboundary.tsx b/packages/react/src/errorboundary.tsx index 4874e285224c..e3f94b441ee6 100644 --- a/packages/react/src/errorboundary.tsx +++ b/packages/react/src/errorboundary.tsx @@ -1,7 +1,7 @@ import type { ReportDialogOptions } from '@sentry/browser'; import { getClient, showReportDialog, withScope } from '@sentry/browser'; import type { Scope } from '@sentry/core'; -import { logger } from '@sentry/core'; +import { debug } from '@sentry/core'; import * as React from 'react'; import { DEBUG_BUILD } from './debug-build'; import { captureReactException } from './error'; @@ -207,7 +207,7 @@ class ErrorBoundary extends React.Component { if (!_useEffect || !_useLocation || !_useNavigationType || !_matchRoutes) { DEBUG_BUILD && - logger.warn( + debug.warn( `reactRouterV${version}Instrumentation was unable to wrap the \`createRouter\` function because of one or more missing parameters.`, ); @@ -147,7 +147,7 @@ export function createV6CompatibleWrapCreateMemoryRouter< ): CreateRouterFunction { if (!_useEffect || !_useLocation || !_useNavigationType || !_matchRoutes) { DEBUG_BUILD && - logger.warn( + debug.warn( `reactRouterV${version}Instrumentation was unable to wrap the \`createMemoryRouter\` function because of one or more missing parameters.`, ); @@ -271,7 +271,7 @@ export function createReactRouterV6CompatibleTracingIntegration( export function createV6CompatibleWrapUseRoutes(origUseRoutes: UseRoutes, version: V6CompatibleVersion): UseRoutes { if (!_useEffect || !_useLocation || !_useNavigationType || !_matchRoutes) { DEBUG_BUILD && - logger.warn( + debug.warn( 'reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters.', ); @@ -632,7 +632,7 @@ export function createV6CompatibleWithSentryReactRouterRouting