diff --git a/app/client/src/sagas/ErrorSagas.tsx b/app/client/src/sagas/ErrorSagas.tsx index 86749ca39f..2fd96971cf 100644 --- a/app/client/src/sagas/ErrorSagas.tsx +++ b/app/client/src/sagas/ErrorSagas.tsx @@ -138,7 +138,7 @@ export function* errorSaga( function logErrorSaga(action: ReduxAction<{ error: ErrorPayloadType }>) { log.debug(`Error in action ${action.type}`); - log.error(action.payload.error); + if (action.payload) log.error(action.payload.error); } function showAlertAboutError(message: string) { diff --git a/app/client/src/utils/AppsmithUtils.tsx b/app/client/src/utils/AppsmithUtils.tsx index 3f85e3829e..e8b4c718de 100644 --- a/app/client/src/utils/AppsmithUtils.tsx +++ b/app/client/src/utils/AppsmithUtils.tsx @@ -46,7 +46,23 @@ export const appInitializer = () => { FeatureFlag.initialize(appsmithConfigs.featureFlag); if (appsmithConfigs.sentry.enabled) { - Sentry.init(appsmithConfigs.sentry); + Sentry.init({ + ...appsmithConfigs.sentry, + beforeBreadcrumb(breadcrumb, hint) { + if (breadcrumb.category === "console" && breadcrumb.level !== "error") { + return null; + } + if (breadcrumb.category === "redux.action") { + if ( + breadcrumb.data && + breadcrumb.data.type === "SET_EVALUATED_TREE" + ) { + breadcrumb.data = undefined; + } + } + return breadcrumb; + }, + }); } if (appsmithConfigs.smartLook.enabled) {