mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 15:27:17 +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) {
|
||||
const shouldReportErrors = settings.getSync('errorReporting');
|
||||
console.error(error);
|
||||
if (shouldReportErrors) {
|
||||
initAnalytics();
|
||||
console.error(error);
|
||||
SentryRenderer.captureException(error);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user