@@ -16,6 +16,7 @@ import type {
1616import type { RequestEventData , Span , TransactionSource , WrappedFunction } from '@sentry/core' ;
1717import {
1818 continueTrace ,
19+ debug ,
1920 fill ,
2021 getActiveSpan ,
2122 getClient ,
@@ -24,7 +25,6 @@ import {
2425 hasSpansEnabled ,
2526 isNodeEnv ,
2627 loadModule ,
27- logger ,
2828 SEMANTIC_ATTRIBUTE_SENTRY_OP ,
2929 SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN ,
3030 SEMANTIC_ATTRIBUTE_SENTRY_SOURCE ,
@@ -73,7 +73,7 @@ export function sentryHandleError(err: unknown, { request }: DataFunctionArgs):
7373 }
7474
7575 captureRemixServerException ( err , 'remix.server.handleError' , request ) . then ( null , e => {
76- DEBUG_BUILD && logger . warn ( 'Failed to capture Remix Server exception.' , e ) ;
76+ DEBUG_BUILD && debug . warn ( 'Failed to capture Remix Server exception.' , e ) ;
7777 } ) ;
7878}
7979
@@ -220,7 +220,7 @@ function makeWrappedRootLoader() {
220220 // We skip injection of trace and baggage in those cases.
221221 // For `redirect`, a valid internal redirection target will have the trace and baggage injected.
222222 if ( isRedirectResponse ( res ) || isCatchResponse ( res ) ) {
223- DEBUG_BUILD && logger . warn ( 'Skipping injection of trace and baggage as the response does not have a body' ) ;
223+ DEBUG_BUILD && debug . warn ( 'Skipping injection of trace and baggage as the response does not have a body' ) ;
224224 return res ;
225225 } else {
226226 const data = await extractData ( res ) ;
@@ -235,7 +235,7 @@ function makeWrappedRootLoader() {
235235 } ,
236236 ) ;
237237 } else {
238- DEBUG_BUILD && logger . warn ( 'Skipping injection of trace and baggage as the response body is not an object' ) ;
238+ DEBUG_BUILD && debug . warn ( 'Skipping injection of trace and baggage as the response body is not an object' ) ;
239239 return res ;
240240 }
241241 }
@@ -289,7 +289,7 @@ function wrapRequestHandler<T extends ServerBuild | (() => ServerBuild | Promise
289289 try {
290290 normalizedRequest = winterCGRequestToRequestData ( request ) ;
291291 } catch ( e ) {
292- DEBUG_BUILD && logger . warn ( 'Failed to normalize Remix request' ) ;
292+ DEBUG_BUILD && debug . warn ( 'Failed to normalize Remix request' ) ;
293293 }
294294
295295 if ( options ?. instrumentTracing && resolvedRoutes ) {
@@ -447,7 +447,7 @@ export function instrumentServer(options?: { instrumentTracing?: boolean }): voi
447447 } > ( '@remix-run/server-runtime' , module ) ;
448448
449449 if ( ! pkg ) {
450- DEBUG_BUILD && logger . warn ( 'Remix SDK was unable to require `@remix-run/server-runtime` package.' ) ;
450+ DEBUG_BUILD && debug . warn ( 'Remix SDK was unable to require `@remix-run/server-runtime` package.' ) ;
451451
452452 return ;
453453 }
0 commit comments