mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-27 01:11:13 -06:00
SDA Bridge - Improving logs (#1282)
This commit is contained in:
parent
ebd803d196
commit
289dfb42bb
@ -62,9 +62,15 @@ ipcMain.on(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!arg) {
|
if (!arg) {
|
||||||
|
logger.error(
|
||||||
|
'main-api-handler: no args received. Unable to handle API call.',
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
logger.info(
|
||||||
|
`main-api-handler: API call received - ${arg.cmd} - Properties:`,
|
||||||
|
arg,
|
||||||
|
);
|
||||||
switch (arg.cmd) {
|
switch (arg.cmd) {
|
||||||
case apiCmds.isOnline:
|
case apiCmds.isOnline:
|
||||||
if (typeof arg.isOnline === 'boolean') {
|
if (typeof arg.isOnline === 'boolean') {
|
||||||
@ -282,7 +288,7 @@ ipcMain.on(
|
|||||||
if (appMenu && windowHandler.isMana) {
|
if (appMenu && windowHandler.isMana) {
|
||||||
appMenu.buildMenu();
|
appMenu.buildMenu();
|
||||||
}
|
}
|
||||||
logger.info('window-handler: isMana: ' + windowHandler.isMana);
|
logger.info('main-api-handler: isMana: ' + windowHandler.isMana);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case apiCmds.showNotification:
|
case apiCmds.showNotification:
|
||||||
|
Loading…
Reference in New Issue
Block a user