@@ -10,11 +10,11 @@ import {
10
10
} from '@sentry/browser' ;
11
11
import type { Client , Integration , Span , TransactionSource } from '@sentry/core' ;
12
12
import {
13
+ debug ,
13
14
getActiveSpan ,
14
15
getClient ,
15
16
getCurrentScope ,
16
17
getRootSpan ,
17
- logger ,
18
18
SEMANTIC_ATTRIBUTE_SENTRY_OP ,
19
19
SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ,
20
20
SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ,
@@ -75,7 +75,7 @@ export function createV6CompatibleWrapCreateBrowserRouter<
75
75
) : CreateRouterFunction < TState , TRouter > {
76
76
if ( ! _useEffect || ! _useLocation || ! _useNavigationType || ! _matchRoutes ) {
77
77
DEBUG_BUILD &&
78
- logger . warn (
78
+ debug . warn (
79
79
`reactRouterV${ version } Instrumentation was unable to wrap the \`createRouter\` function because of one or more missing parameters.` ,
80
80
) ;
81
81
@@ -147,7 +147,7 @@ export function createV6CompatibleWrapCreateMemoryRouter<
147
147
) : CreateRouterFunction < TState , TRouter > {
148
148
if ( ! _useEffect || ! _useLocation || ! _useNavigationType || ! _matchRoutes ) {
149
149
DEBUG_BUILD &&
150
- logger . warn (
150
+ debug . warn (
151
151
`reactRouterV${ version } Instrumentation was unable to wrap the \`createMemoryRouter\` function because of one or more missing parameters.` ,
152
152
) ;
153
153
@@ -271,7 +271,7 @@ export function createReactRouterV6CompatibleTracingIntegration(
271
271
export function createV6CompatibleWrapUseRoutes ( origUseRoutes : UseRoutes , version : V6CompatibleVersion ) : UseRoutes {
272
272
if ( ! _useEffect || ! _useLocation || ! _useNavigationType || ! _matchRoutes ) {
273
273
DEBUG_BUILD &&
274
- logger . warn (
274
+ debug . warn (
275
275
'reactRouterV6Instrumentation was unable to wrap `useRoutes` because of one or more missing parameters.' ,
276
276
) ;
277
277
@@ -632,7 +632,7 @@ export function createV6CompatibleWithSentryReactRouterRouting<P extends Record<
632
632
) : R {
633
633
if ( ! _useEffect || ! _useLocation || ! _useNavigationType || ! _createRoutesFromChildren || ! _matchRoutes ) {
634
634
DEBUG_BUILD &&
635
- logger . warn ( `reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.
635
+ debug . warn ( `reactRouterV6Instrumentation was unable to wrap Routes because of one or more missing parameters.
636
636
useEffect: ${ _useEffect } . useLocation: ${ _useLocation } . useNavigationType: ${ _useNavigationType } .
637
637
createRoutesFromChildren: ${ _createRoutesFromChildren } . matchRoutes: ${ _matchRoutes } .` ) ;
638
638
0 commit comments