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