send exeption to console even when error reporting is off

This commit is contained in:
Edwin Joassart 2023-01-16 13:24:12 +01:00
parent 46c406e8c1
commit 5bd4e06cb9
2 changed files with 2 additions and 2 deletions

View File

@ -221,9 +221,9 @@ export async function logEvent(message: string, data: AnalyticsPayload = {}) {
*/
export function logException(error: any) {
const shouldReportErrors = settings.getSync('errorReporting');
console.error(error);
if (shouldReportErrors) {
initAnalytics();
console.error(error);
SentryRenderer.captureException(error);
}
}

View File

@ -65,8 +65,8 @@ async function checkForUpdates(interval: number) {
function logMainProcessException(error: any) {
const shouldReportErrors = settings.getSync('errorReporting');
console.error(error);
if (shouldReportErrors) {
console.error(error);
SentryMain.captureException(error);
}
}