mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-28 05:36:34 +00:00
send exeption to console even when error reporting is off
This commit is contained in:
parent
46c406e8c1
commit
5bd4e06cb9
@ -221,9 +221,9 @@ export async function logEvent(message: string, data: AnalyticsPayload = {}) {
|
|||||||
*/
|
*/
|
||||||
export function logException(error: any) {
|
export function logException(error: any) {
|
||||||
const shouldReportErrors = settings.getSync('errorReporting');
|
const shouldReportErrors = settings.getSync('errorReporting');
|
||||||
|
console.error(error);
|
||||||
if (shouldReportErrors) {
|
if (shouldReportErrors) {
|
||||||
initAnalytics();
|
initAnalytics();
|
||||||
console.error(error);
|
|
||||||
SentryRenderer.captureException(error);
|
SentryRenderer.captureException(error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -65,8 +65,8 @@ async function checkForUpdates(interval: number) {
|
|||||||
|
|
||||||
function logMainProcessException(error: any) {
|
function logMainProcessException(error: any) {
|
||||||
const shouldReportErrors = settings.getSync('errorReporting');
|
const shouldReportErrors = settings.getSync('errorReporting');
|
||||||
if (shouldReportErrors) {
|
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
if (shouldReportErrors) {
|
||||||
SentryMain.captureException(error);
|
SentryMain.captureException(error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user