Throwing error to allow kubernetes restart
This commit is contained in:
1 parent
95e33ec258
commit
cc49dd3f17
1 file changed
+1
-1
@@ -28,7 +28,7 @@ process.on('unhandledRejection', (reason, p) => {
|
||||
process.on('exit', function (code) {
|
||||
try {
|
||||
console.log('[INFO] Run -> process.on.exit -> About to exit -> code = ' + code);
|
||||
return;
|
||||
throw new Error()
|
||||
}
|
||||
catch (err) {
|
||||
console.log("[ERROR] Run -> process.on.exit -> Error Logging Error Code.");
|
||||
|
||||
Reference in new issue
Block a user