From 99ac8472b599458fd5a6456d9917e6946063c9b7 Mon Sep 17 00:00:00 2001 From: Abhinav Date: Wed, 27 Jul 2022 11:03:54 +0530 Subject: [PATCH] add debug log for each sentry error --- src/utils/sentry/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils/sentry/index.ts b/src/utils/sentry/index.ts index 5608ceb9e..3e99ce839 100644 --- a/src/utils/sentry/index.ts +++ b/src/utils/sentry/index.ts @@ -1,4 +1,5 @@ import * as Sentry from '@sentry/nextjs'; +import { addLogLine } from 'utils/logging'; import { getUserAnonymizedID } from 'utils/user'; export const logError = ( @@ -10,6 +11,7 @@ export const logError = ( return; } const err = errorWithContext(error, msg); + addLogLine(`error: ${error} msg: ${msg} info: ${info}`); if (!process.env.NEXT_PUBLIC_SENTRY_ENV) { console.log(error, { msg, info }); }