File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import type {
5
5
Integration ,
6
6
IntegrationFn ,
7
7
} from '@sentry/core' ;
8
- import { addIntegration , isBrowser , logger } from '@sentry/core' ;
8
+ import { addIntegration , debug , isBrowser } from '@sentry/core' ;
9
9
import {
10
10
ADD_SCREENSHOT_LABEL ,
11
11
CANCEL_BUTTON_LABEL ,
@@ -194,7 +194,7 @@ export const buildFeedbackIntegration = ({
194
194
addIntegration ( modalIntegration ) ;
195
195
} catch {
196
196
DEBUG_BUILD &&
197
- logger . error (
197
+ debug . error (
198
198
'[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`.' ,
199
199
) ;
200
200
throw new Error ( '[Feedback] Missing feedback modal integration!' ) ;
@@ -213,7 +213,7 @@ export const buildFeedbackIntegration = ({
213
213
}
214
214
} catch {
215
215
DEBUG_BUILD &&
216
- logger . error ( '[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.' ) ;
216
+ debug . error ( '[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.' ) ;
217
217
}
218
218
219
219
const dialog = modalIntegration . createDialog ( {
@@ -243,7 +243,7 @@ export const buildFeedbackIntegration = ({
243
243
typeof el === 'string' ? DOCUMENT . querySelector ( el ) : typeof el . addEventListener === 'function' ? el : null ;
244
244
245
245
if ( ! targetEl ) {
246
- DEBUG_BUILD && logger . error ( '[Feedback] Unable to attach to target element' ) ;
246
+ DEBUG_BUILD && debug . error ( '[Feedback] Unable to attach to target element' ) ;
247
247
throw new Error ( 'Unable to attach to target element' ) ;
248
248
}
249
249
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import type {
4
4
FeedbackScreenshotIntegration ,
5
5
SendFeedback ,
6
6
} from '@sentry/core' ;
7
- import { logger } from '@sentry/core' ;
7
+ import { debug } from '@sentry/core' ;
8
8
import type { JSX , VNode } from 'preact' ;
9
9
import { h } from 'preact' ; // eslint-disable-line @typescript-eslint/no-unused-vars
10
10
import { useCallback , useState } from 'preact/hooks' ;
@@ -130,7 +130,7 @@ export function Form({
130
130
) ;
131
131
onSubmitSuccess ( data , eventId ) ;
132
132
} catch ( error ) {
133
- DEBUG_BUILD && logger . error ( error ) ;
133
+ DEBUG_BUILD && debug . error ( error ) ;
134
134
setError ( error as string ) ;
135
135
onSubmitError ( error as Error ) ;
136
136
}
You can’t perform that action at this time.
0 commit comments