fix(log): exceptions log handling

This commit is contained in:
Alexey Kasyanchuk 2020-01-04 14:29:46 +03:00
parent 13168393ba
commit 5260d514ab

View File

@ -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) {