diff --git a/packages/feedback/src/core/integration.ts b/packages/feedback/src/core/integration.ts index e5f1092856f1..d70f563b6136 100644 --- a/packages/feedback/src/core/integration.ts +++ b/packages/feedback/src/core/integration.ts @@ -5,7 +5,7 @@ import type { Integration, IntegrationFn, } from '@sentry/core'; -import { addIntegration, isBrowser, logger } from '@sentry/core'; +import { addIntegration, debug, isBrowser } from '@sentry/core'; import { ADD_SCREENSHOT_LABEL, CANCEL_BUTTON_LABEL, @@ -194,7 +194,7 @@ export const buildFeedbackIntegration = ({ addIntegration(modalIntegration); } catch { DEBUG_BUILD && - logger.error( + debug.error( '[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`.', ); throw new Error('[Feedback] Missing feedback modal integration!'); @@ -213,7 +213,7 @@ export const buildFeedbackIntegration = ({ } } catch { DEBUG_BUILD && - logger.error('[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.'); + debug.error('[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.'); } const dialog = modalIntegration.createDialog({ @@ -243,7 +243,7 @@ export const buildFeedbackIntegration = ({ typeof el === 'string' ? DOCUMENT.querySelector(el) : typeof el.addEventListener === 'function' ? el : null; if (!targetEl) { - DEBUG_BUILD && logger.error('[Feedback] Unable to attach to target element'); + DEBUG_BUILD && debug.error('[Feedback] Unable to attach to target element'); throw new Error('Unable to attach to target element'); } diff --git a/packages/feedback/src/modal/components/Form.tsx b/packages/feedback/src/modal/components/Form.tsx index b0242f9738a6..0f09e969fee5 100644 --- a/packages/feedback/src/modal/components/Form.tsx +++ b/packages/feedback/src/modal/components/Form.tsx @@ -4,7 +4,7 @@ import type { FeedbackScreenshotIntegration, SendFeedback, } from '@sentry/core'; -import { logger } from '@sentry/core'; +import { debug } from '@sentry/core'; import type { JSX, VNode } from 'preact'; import { h } from 'preact'; // eslint-disable-line @typescript-eslint/no-unused-vars import { useCallback, useState } from 'preact/hooks'; @@ -130,7 +130,7 @@ export function Form({ ); onSubmitSuccess(data, eventId); } catch (error) { - DEBUG_BUILD && logger.error(error); + DEBUG_BUILD && debug.error(error); setError(error as string); onSubmitError(error as Error); }