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

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,19 @@ 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
304
  }), (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
305
  // abort된 경우와 일반 에러를 구분
312
306
  if (abortController.signal.aborted) {
313
- // 추가되어야 하는가?
314
307
  return (0, rxjs_1.throwError)(() => new Error(`REQUEST_ABORTED: ${this.DEFAULT_TIMEOUT_MESSAGE}`));
315
308
  }
316
309
  return (0, rxjs_1.throwError)(() => error);
317
310
  }), (0, operators_1.tap)({
318
311
  next: async (val) => {
319
312
  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
313
  /** 만약 응답데이터중 isRequeue가 true라면, 다시 재처리 하도록 함 */
327
314
  if (val.data && val.data.isRequeue) {
328
315
  channel.nack(message, false, true);
@@ -339,7 +326,6 @@ let RPCInterceptor = class RPCInterceptor {
339
326
  // eslint-disable-next-line consistent-return
340
327
  (0, operators_1.catchError)(async (err) => {
341
328
  // timeout 에러 처리
342
- console.log('RPCInterceptor catchError 발생', err);
343
329
  const isTimeoutError = err instanceof Error && (err.name === 'TimeoutError' || err.message === this.DEFAULT_TIMEOUT_MESSAGE);
344
330
  if (isTimeoutError) {
345
331
  msaLogger.error('[타임 아웃] 메시지 재전송 처리', { traceId: execInterceptor.traceId }, {
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.37",
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",