mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-31 19:27:00 -06:00
SDA-2887: add logs once analytics events are sent
This commit is contained in:
parent
356cf769e8
commit
b3bd36891e
@ -45,6 +45,11 @@ class CrashHandler {
|
|||||||
crashCause: _killed ? 'killed' : 'crashed',
|
crashCause: _killed ? 'killed' : 'crashed',
|
||||||
};
|
};
|
||||||
analytics.track(eventData);
|
analytics.track(eventData);
|
||||||
|
logger.info(
|
||||||
|
`crash-handler: GPU process crash event processed with data ${JSON.stringify(
|
||||||
|
eventData,
|
||||||
|
)}`,
|
||||||
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -65,6 +70,11 @@ class CrashHandler {
|
|||||||
crashCause: lastCrash.id,
|
crashCause: lastCrash.id,
|
||||||
};
|
};
|
||||||
analytics.track(eventData);
|
analytics.track(eventData);
|
||||||
|
logger.info(
|
||||||
|
`crash-handler: Main process crash event processed with data ${JSON.stringify(
|
||||||
|
eventData,
|
||||||
|
)}`,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
@ -96,6 +106,11 @@ class CrashHandler {
|
|||||||
case 'oom':
|
case 'oom':
|
||||||
await CrashHandler.showMessageToUser(browserWindow);
|
await CrashHandler.showMessageToUser(browserWindow);
|
||||||
analytics.track(eventData);
|
analytics.track(eventData);
|
||||||
|
logger.info(
|
||||||
|
`crash-handler: Renderer process crash event processed with data ${JSON.stringify(
|
||||||
|
eventData,
|
||||||
|
)}`,
|
||||||
|
);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user