File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
- import { logger } from '@sentry/core' ;
1
+ import { debug } from '@sentry/core' ;
2
2
import type { Nitro } from 'nitropack' ;
3
3
import { addSentryPluginToVite } from '../vite/sentrySolidStartVite' ;
4
4
import type { SentrySolidStartPluginOptions } from '../vite/types' ;
@@ -55,7 +55,7 @@ export function withSentry(
55
55
await addDynamicImportEntryFileWrapper ( { nitro, rollupConfig : config , sentryPluginOptions } ) ;
56
56
57
57
sentrySolidStartPluginOptions . debug &&
58
- logger . log (
58
+ debug . log (
59
59
'Wrapping the server entry file with a dynamic `import()`, so Sentry can be preloaded before the server initializes.' ,
60
60
) ;
61
61
} else {
Original file line number Diff line number Diff line change 1
1
import type { EventProcessor , Options } from '@sentry/core' ;
2
- import { logger } from '@sentry/core' ;
2
+ import { debug } from '@sentry/core' ;
3
3
import { flush , getGlobalScope } from '@sentry/node' ;
4
4
import { DEBUG_BUILD } from '../common/debug-build' ;
5
5
@@ -9,11 +9,11 @@ export async function flushIfServerless(): Promise<void> {
9
9
10
10
if ( isServerless ) {
11
11
try {
12
- DEBUG_BUILD && logger . log ( 'Flushing events...' ) ;
12
+ DEBUG_BUILD && debug . log ( 'Flushing events...' ) ;
13
13
await flush ( 2000 ) ;
14
- DEBUG_BUILD && logger . log ( 'Done flushing events' ) ;
14
+ DEBUG_BUILD && debug . log ( 'Done flushing events' ) ;
15
15
} catch ( e ) {
16
- DEBUG_BUILD && logger . log ( 'Error while flushing events:\n' , e ) ;
16
+ DEBUG_BUILD && debug . log ( 'Error while flushing events:\n' , e ) ;
17
17
}
18
18
}
19
19
}
@@ -46,7 +46,7 @@ export function filterLowQualityTransactions(options: Options): void {
46
46
}
47
47
// Filter out transactions for build assets
48
48
if ( event . transaction ?. match ( / ^ G E T \/ _ b u i l d \/ / ) ) {
49
- options . debug && logger . log ( 'SolidStartLowQualityTransactionsFilter filtered transaction' , event . transaction ) ;
49
+ options . debug && debug . log ( 'SolidStartLowQualityTransactionsFilter filtered transaction' , event . transaction ) ;
50
50
return null ;
51
51
}
52
52
return event ;
You can’t perform that action at this time.
0 commit comments