Merge remote-tracking branch 'upstream/develop' into develop

This commit is contained in:
Luis Fernando Molina committed 2019-03-29 22:00:51 +01:00
commit 85b4f17307
1 file changed
+4 -12
+4 -12
View File
@@ -16,25 +16,17 @@ global.MARKET = {
process.on('uncaughtException', function (err) {
console.log('[INFO] Run -> uncaughtException -> err.message = ' + err.message);
console.log('[INFO] Run -> uncaughtException -> err.stack = ', err.stack);
throw new Error()
process.exit(1)
});
process.on('unhandledRejection', (reason, p) => {
console.log('[INFO] Run -> unhandledRejection -> reason = ' + reason);
console.log('[INFO] Run -> unhandledRejection -> reason = ' + JSON.stringify(reason));
console.log('[INFO] Run -> unhandledRejection -> p = ' + JSON.stringify(p));
throw new Error()
process.exit(1)
});
process.on('exit', function (code) {
try {
console.log('[INFO] Run -> process.on.exit -> About to exit -> code = ' + code);
throw new Error()
}
catch (err) {
console.log("[ERROR] Run -> process.on.exit -> Error Logging Error Code.");
console.log("[ERROR] Run -> process.on.exit -> err.message = " + err.message);
return;
}
console.log('[INFO] Run -> process.on.exit -> About to exit -> code = ' + code);
});
readExecutionConfiguration();