@yolo-croket-dev/core 1.7.46-beta.5 → 1.7.46

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.
@@ -7,7 +7,6 @@ import { ErrAction } from '../interfaces/exception';
7
7
  */
8
8
  export declare class UnAuthorized extends HttpException {
9
9
  subMessage: string | null;
10
- errType: string | null;
11
10
  errMessage: string | null;
12
11
  errAction: ErrAction | null;
13
12
  constructor(errMessage?: string, errAction?: ErrAction);
@@ -13,12 +13,10 @@ class UnAuthorized extends common_1.HttpException {
13
13
  // legacy
14
14
  this.subMessage = null;
15
15
  // new
16
- this.errType = null;
17
16
  this.errMessage = null;
18
17
  this.errAction = null;
19
18
  this.subMessage = errMessage || null;
20
19
  // new
21
- this.errType = 'USER_AUTHENTICATION_FAIL';
22
20
  this.errMessage = errMessage || null;
23
21
  this.errAction = errAction || null;
24
22
  }
@@ -58,7 +58,7 @@ class AmqpManagement {
58
58
  return result.data;
59
59
  }
60
60
  catch (err) {
61
- msaLogger.warn(`ThrowWrapppingCall[${funcName}] error: traceId=${param.traceId}`, { traceId: param.traceId }, { param });
61
+ msaLogger.error(`ThrowWrapppingCall[${funcName}] error: traceId=${param.traceId}`, { traceId: param.traceId }, { param });
62
62
  if (options && options.isErrorThrowing) {
63
63
  throw err;
64
64
  }
@@ -62,7 +62,7 @@ async function AmqpHandler(client, messagePattern, payload) {
62
62
  });
63
63
  }
64
64
  else {
65
- msaLogger.warn('AMQP_HANDLER_ERROR', { traceId: ((_d = payload === null || payload === void 0 ? void 0 : payload.param) === null || _d === void 0 ? void 0 : _d.traceId) || '-' }, { err });
65
+ msaLogger.error('AMQP_HANDLER_ERROR', { traceId: ((_d = payload === null || payload === void 0 ? void 0 : payload.param) === null || _d === void 0 ? void 0 : _d.traceId) || '-' }, { err });
66
66
  throw err;
67
67
  }
68
68
  }
@@ -105,11 +105,14 @@ let LoggingServiceInterceptor = class LoggingServiceInterceptor {
105
105
  from: pastFrom,
106
106
  froms: pastFroms,
107
107
  },
108
+ startedAt: Date.now(),
108
109
  });
109
110
  const currentSpan = dd_trace_1.default.scope().active();
110
111
  let loggingSpan = null;
111
112
  if (currentSpan) {
112
- loggingSpan = dd_trace_1.default.startSpan(`logging-service-interceptor-${content.pattern}`, { childOf: currentSpan.context() });
113
+ loggingSpan = dd_trace_1.default.startSpan(`logging-service-interceptor-${content.pattern}`, {
114
+ childOf: currentSpan.context(),
115
+ });
113
116
  }
114
117
  if (loggingSpan) {
115
118
  loggingSpan.setTag('traceId', traceId);
@@ -278,7 +278,7 @@ let RPCInterceptor = class RPCInterceptor {
278
278
  if (!isAck) {
279
279
  const currentContext = functions_1.AbortContext.getCurrentContext();
280
280
  // 에러 전달
281
- msaLogger.warn('에러 응답 전송 처리', { traceId: execInterceptor.traceId }, {
281
+ msaLogger.error('에러 응답 전송 처리', { traceId: execInterceptor.traceId }, {
282
282
  error: {
283
283
  message: err.message,
284
284
  stack: err.stack,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.7.46-beta.5",
3
+ "version": "1.7.46",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",
@@ -17,7 +17,7 @@
17
17
  "@nestjs/common": "^8.2.3",
18
18
  "@nestjs/swagger": "5",
19
19
  "@yolo-croket-dev/logger": "^1.0.15",
20
- "@yolo-croket-dev/msa-logger": "3.0.1",
20
+ "@yolo-croket-dev/msa-logger": "^3.1.1",
21
21
  "@yolo-croket-dev/redis": "^1.0.25",
22
22
  "axios": "^1.1.3",
23
23
  "dd-trace": "^5.46.0",
@@ -1,9 +0,0 @@
1
- {
2
- "permissions": {
3
- "allow": [
4
- "Bash(npm run lint)"
5
- ],
6
- "deny": [],
7
- "ask": []
8
- }
9
- }