@yolo-croket-dev/core 1.9.2 → 1.9.3-jun.0
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.
|
@@ -17,7 +17,6 @@ class HttpExceptionCustom extends common_1.HttpException {
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
exports.HttpExceptionCustom = HttpExceptionCustom;
|
|
20
|
-
// eslint-disable-next-line max-len
|
|
21
20
|
async function AmqpHandler(client, messagePattern, payload) {
|
|
22
21
|
var _a, _b, _c, _d;
|
|
23
22
|
let data;
|
|
@@ -31,6 +30,7 @@ async function AmqpHandler(client, messagePattern, payload) {
|
|
|
31
30
|
* 다른 서비스에서 이미 처리가 될 수 있음
|
|
32
31
|
* */
|
|
33
32
|
(0, _1.reWriteFileValue)((_a = data === null || data === void 0 ? void 0 : data.arg) === null || _a === void 0 ? void 0 : _a.file);
|
|
33
|
+
console.log('data@@@@@@@', data);
|
|
34
34
|
const errInfo = data.errInfo ? data.errInfo : {
|
|
35
35
|
message: data.errMessage,
|
|
36
36
|
type: data.errType,
|
|
@@ -40,6 +40,7 @@ async function AmqpHandler(client, messagePattern, payload) {
|
|
|
40
40
|
delete data.errType;
|
|
41
41
|
delete data.errMessage;
|
|
42
42
|
delete data.errAction;
|
|
43
|
+
delete data.errOption;
|
|
43
44
|
delete data.isError;
|
|
44
45
|
delete data.status;
|
|
45
46
|
delete data.arg;
|
|
@@ -213,6 +213,7 @@ let RPCInterceptor = class RPCInterceptor {
|
|
|
213
213
|
const errMessage = err.errMessage;
|
|
214
214
|
const errAction = err.errAction;
|
|
215
215
|
const errInfo = err.errInfo;
|
|
216
|
+
const errOption = err.errOption;
|
|
216
217
|
const duration = Date.now() - now;
|
|
217
218
|
let isAck = false;
|
|
218
219
|
const isTimeoutError = err instanceof Error
|
|
@@ -227,11 +228,13 @@ let RPCInterceptor = class RPCInterceptor {
|
|
|
227
228
|
duration,
|
|
228
229
|
arg,
|
|
229
230
|
timestamp: new Date(),
|
|
230
|
-
//
|
|
231
|
+
// === Service-to-Service Error Data ===
|
|
231
232
|
errInfo,
|
|
233
|
+
// === Service-to-Gateway Error Data ===
|
|
232
234
|
errType,
|
|
233
235
|
errMessage,
|
|
234
236
|
errAction,
|
|
237
|
+
errOption,
|
|
235
238
|
};
|
|
236
239
|
if (!Number.isNaN(staticRetryCount)
|
|
237
240
|
&& staticRetryCount
|