@yolo-croket-dev/core 1.7.25-slowquery.36 → 1.7.25-slowquery.38

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.
@@ -297,32 +297,13 @@ let RPCInterceptor = class RPCInterceptor {
297
297
  .pipe((0, operators_1.timeout)({
298
298
  each: this.DEFAULT_TIMEOUT,
299
299
  with: () => {
300
- console.log('RPCInterceptor timeout 발생');
301
300
  msaLogger.error('RPCInterceptor timeout 발생', { traceId: execInterceptor.traceId }, { message: this.DEFAULT_TIMEOUT_MESSAGE });
302
301
  abortController.abort();
303
302
  return (0, rxjs_1.throwError)(() => new Error(this.DEFAULT_TIMEOUT_MESSAGE));
304
303
  },
305
- }), (0, operators_1.catchError)((error) => {
306
- // eslint-disable-next-line no-console
307
- console.log('AbortInterceptor: 에러 발생', {
308
- error: error.message,
309
- isAborted: abortController.signal.aborted,
310
- });
311
- // abort된 경우와 일반 에러를 구분
312
- if (abortController.signal.aborted) {
313
- // 추가되어야 하는가?
314
- return (0, rxjs_1.throwError)(() => new Error(`REQUEST_ABORTED: ${this.DEFAULT_TIMEOUT_MESSAGE}`));
315
- }
316
- return (0, rxjs_1.throwError)(() => error);
317
304
  }), (0, operators_1.tap)({
318
305
  next: async (val) => {
319
306
  val.isError = false;
320
- // const duration = Date.now() - now;
321
- // logger.debug(`<= (success:${traceId}): ${val.message}`, {
322
- // ...logParam,
323
- // duration,
324
- // isError: val.isError,
325
- // });
326
307
  /** 만약 응답데이터중 isRequeue가 true라면, 다시 재처리 하도록 함 */
327
308
  if (val.data && val.data.isRequeue) {
328
309
  channel.nack(message, false, true);
@@ -339,7 +320,6 @@ let RPCInterceptor = class RPCInterceptor {
339
320
  // eslint-disable-next-line consistent-return
340
321
  (0, operators_1.catchError)(async (err) => {
341
322
  // timeout 에러 처리
342
- console.log('RPCInterceptor catchError 발생', err);
343
323
  const isTimeoutError = err instanceof Error && (err.name === 'TimeoutError' || err.message === this.DEFAULT_TIMEOUT_MESSAGE);
344
324
  if (isTimeoutError) {
345
325
  msaLogger.error('[타임 아웃] 메시지 재전송 처리', { traceId: execInterceptor.traceId }, {
@@ -371,6 +351,7 @@ let RPCInterceptor = class RPCInterceptor {
371
351
  }
372
352
  }), (0, operators_1.finalize)(() => {
373
353
  this.gracefulShutdownService.popActiveInterceptors(execInterceptor);
354
+ abortController.abort();
374
355
  })));
375
356
  }
376
357
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.7.25-slowquery.36",
3
+ "version": "1.7.25-slowquery.38",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",
@@ -15,7 +15,6 @@
15
15
  "license": "UNLICENSED",
16
16
  "dependencies": {
17
17
  "@nestjs/common": "^8.2.3",
18
- "@xuchaoqian/abortable-promise": "^1.11.2",
19
18
  "@yolo-croket-dev/logger": "^1.0.15",
20
19
  "@yolo-croket-dev/msa-logger": "^3.0.4",
21
20
  "@yolo-croket-dev/redis": "^1.0.23",