whatap 0.5.25 → 0.5.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -116,27 +116,27 @@ ProcessObserver.prototype._hookProcessExit = function (mod) {
|
|
|
116
116
|
});
|
|
117
117
|
|
|
118
118
|
// 처리되지 않은 예외
|
|
119
|
-
process.on('uncaughtException', function (err) {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
});
|
|
128
|
-
|
|
129
|
-
// 처리되지 않은 Promise rejection
|
|
130
|
-
process.on('unhandledRejection', function (reason, promise) {
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
});
|
|
119
|
+
// process.on('uncaughtException', function (err) {
|
|
120
|
+
// const message = `Unhandled exception caused process crash - Error: ${err.message}, File: ${err.stack ? err.stack.split('\n')[1] || 'unknown' : 'unknown'}`;
|
|
121
|
+
// Logger.print('WHATAP-907', message, err, false);
|
|
122
|
+
//
|
|
123
|
+
// // 로그 남긴 후 프로세스 종료
|
|
124
|
+
// setTimeout(() => {
|
|
125
|
+
// process.exit(1);
|
|
126
|
+
// }, 100);
|
|
127
|
+
// });
|
|
128
|
+
//
|
|
129
|
+
// // 처리되지 않은 Promise rejection
|
|
130
|
+
// process.on('unhandledRejection', function (reason, promise) {
|
|
131
|
+
// const message = `Unhandled Promise rejection may cause process termination - Reason: ${reason instanceof Error ? reason.message : String(reason)}`;
|
|
132
|
+
// const err = reason instanceof Error ? reason : new Error(String(reason));
|
|
133
|
+
// Logger.print('WHATAP-908', message, err, false);
|
|
134
|
+
//
|
|
135
|
+
// // 로그 남긴 후 프로세스 종료
|
|
136
|
+
// setTimeout(() => {
|
|
137
|
+
// process.exit(1);
|
|
138
|
+
// }, 100);
|
|
139
|
+
// });
|
|
140
140
|
|
|
141
141
|
this.exitHandlersRegistered = true;
|
|
142
142
|
};
|
package/package.json
CHANGED