diff --git a/app/entry.client.tsx b/app/entry.client.tsx index 4a8aa9a..736654d 100644 --- a/app/entry.client.tsx +++ b/app/entry.client.tsx @@ -19,11 +19,13 @@ Sentry.init({ maskAllText: true, blockAllMedia: true, }), + Sentry.extraErrorDataIntegration(), ], replaysSessionSampleRate: 0.1, replaysOnErrorSampleRate: 1, environment: import.meta.env.SHARED_APP_MODE, + debug: import.meta.env.SHARED_APP_MODE === 'development', }); startTransition(() => { diff --git a/app/entry.server.tsx b/app/entry.server.tsx index fc15130..b78b0ff 100644 --- a/app/entry.server.tsx +++ b/app/entry.server.tsx @@ -13,6 +13,8 @@ Sentry.init({ tracesSampleRate: 1, autoInstrumentRemix: true, environment: import.meta.env.SHARED_APP_MODE, + debug: import.meta.env.SHARED_APP_MODE === 'development', + integrations: [Sentry.extraErrorDataIntegration()], }); export const handleError = Sentry.sentryHandleError; diff --git a/app/models/api.ts b/app/models/api.ts index b159b42..4cddacc 100644 --- a/app/models/api.ts +++ b/app/models/api.ts @@ -228,7 +228,6 @@ export class Api { }; } - // TODO: Sentry 등 에러 로깅 솔루션 추가 console.error(error, this, variables); const apiError = new ApiError({ api: this,