NodeJsFunctions

This commit is contained in:
Luis Fernando Molina committed 2020-11-27 20:09:55 +01:00
1 parent ac182a905d
commit 7fa7cb91d4
6 files changed
+50 -34

No files matched your search

+2 -2
View File
@@ -12,14 +12,14 @@ exports.newNodeJsProcess = function newNodeJsProcess() {
console.log('[ERROR] Task Server -> Node JS Process -> uncaughtException -> err.message = ' + err.message)
console.log('[ERROR] Task Server -> Node JS Process -> uncaughtException -> err.stack = ' + err.stack)
console.log(err.stack)
global.EXIT_NODE_PROCESS()
TS.projects.superalgos.functionLibraries.nodeJSFunctions.exitProcess()
})
process.on('unhandledRejection', (reason, p) => {
console.log('[ERROR] Task Server -> Node JS Process -> unhandledRejection -> reason = ' + JSON.stringify(reason))
console.log('[ERROR] Task Server -> Node JS Process -> unhandledRejection -> p = ' + JSON.stringify(p))
console.log(reason.stack)
global.EXIT_NODE_PROCESS()
TS.projects.superalgos.functionLibraries.nodeJSFunctions.exitProcess()
})
process.on('exit', function (config) {