From b3bd36891e6d54c8ef10dc795afa3bc3c6b1be2d Mon Sep 17 00:00:00 2001 From: Vishwas Shashidhar Date: Tue, 2 Feb 2021 13:53:21 +0530 Subject: [PATCH] SDA-2887: add logs once analytics events are sent --- src/app/crash-handler.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/app/crash-handler.ts b/src/app/crash-handler.ts index d9d2f36b..313aa002 100644 --- a/src/app/crash-handler.ts +++ b/src/app/crash-handler.ts @@ -45,6 +45,11 @@ class CrashHandler { crashCause: _killed ? 'killed' : 'crashed', }; 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, }; analytics.track(eventData); + logger.info( + `crash-handler: Main process crash event processed with data ${JSON.stringify( + eventData, + )}`, + ); } constructor() { @@ -96,6 +106,11 @@ class CrashHandler { case 'oom': await CrashHandler.showMessageToUser(browserWindow); analytics.track(eventData); + logger.info( + `crash-handler: Renderer process crash event processed with data ${JSON.stringify( + eventData, + )}`, + ); break; default: break;