fix(log): exceptions log handling
This commit is contained in:
parent
13168393ba
commit
5260d514ab
@ -126,6 +126,7 @@ if(portative)
|
||||
|
||||
// handle promise rejections
|
||||
process.on('unhandledRejection', r => logTE('system', 'Rejection:', r));
|
||||
process.on('uncaughtException', (err, origin) => logTE('system', 'Exception:', err, 'Origin:', origin));
|
||||
|
||||
const gotTheLock = app.requestSingleInstanceLock()
|
||||
if (!gotTheLock) {
|
||||
|
Loading…
Reference in New Issue
Block a user