From 289dfb42bb837fb4261d62cafd990c9191db9980 Mon Sep 17 00:00:00 2001 From: Salah Benmoussati <51402489+sbenmoussati@users.noreply.github.com> Date: Thu, 28 Oct 2021 18:50:29 +0200 Subject: [PATCH] SDA Bridge - Improving logs (#1282) --- src/app/main-api-handler.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/app/main-api-handler.ts b/src/app/main-api-handler.ts index 9e0b509e..96bacf8a 100644 --- a/src/app/main-api-handler.ts +++ b/src/app/main-api-handler.ts @@ -62,9 +62,15 @@ ipcMain.on( } if (!arg) { + logger.error( + 'main-api-handler: no args received. Unable to handle API call.', + ); return; } - + logger.info( + `main-api-handler: API call received - ${arg.cmd} - Properties:`, + arg, + ); switch (arg.cmd) { case apiCmds.isOnline: if (typeof arg.isOnline === 'boolean') { @@ -282,7 +288,7 @@ ipcMain.on( if (appMenu && windowHandler.isMana) { appMenu.buildMenu(); } - logger.info('window-handler: isMana: ' + windowHandler.isMana); + logger.info('main-api-handler: isMana: ' + windowHandler.isMana); } break; case apiCmds.showNotification: