@yolo-croket-dev/core 1.9.2 → 1.9.3-jun.1
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;
|
|
@@ -207,12 +207,14 @@ let RPCInterceptor = class RPCInterceptor {
|
|
|
207
207
|
const noAck = message.fields.routingKey.includes('ASYNC');
|
|
208
208
|
let localErrorProcessor = async (err) => {
|
|
209
209
|
var _a;
|
|
210
|
+
console.log('err@@@@@@@ rpc가 있다고?', err);
|
|
210
211
|
const errMsg = err.response ? err.response : err.message;
|
|
211
212
|
const status = err.status ? err.status : 500;
|
|
212
213
|
const errType = err.errType;
|
|
213
214
|
const errMessage = err.errMessage;
|
|
214
215
|
const errAction = err.errAction;
|
|
215
216
|
const errInfo = err.errInfo;
|
|
217
|
+
const errOption = err.errOption;
|
|
216
218
|
const duration = Date.now() - now;
|
|
217
219
|
let isAck = false;
|
|
218
220
|
const isTimeoutError = err instanceof Error
|
|
@@ -227,11 +229,13 @@ let RPCInterceptor = class RPCInterceptor {
|
|
|
227
229
|
duration,
|
|
228
230
|
arg,
|
|
229
231
|
timestamp: new Date(),
|
|
230
|
-
//
|
|
232
|
+
// === Service-to-Service Error Data ===
|
|
231
233
|
errInfo,
|
|
234
|
+
// === Service-to-Gateway Error Data ===
|
|
232
235
|
errType,
|
|
233
236
|
errMessage,
|
|
234
237
|
errAction,
|
|
238
|
+
errOption,
|
|
235
239
|
};
|
|
236
240
|
if (!Number.isNaN(staticRetryCount)
|
|
237
241
|
&& staticRetryCount
|