@yolo-croket-dev/core 1.4.52-jun.8 → 1.4.52

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.
@@ -68,7 +68,6 @@ let LoggingServiceInterceptor = class LoggingServiceInterceptor {
68
68
  return data;
69
69
  }
70
70
  intercept(context, next) {
71
- var _a;
72
71
  const now = Date.now();
73
72
  const args = context.getArgs();
74
73
  const rmq = args[1];
@@ -78,9 +77,6 @@ let LoggingServiceInterceptor = class LoggingServiceInterceptor {
78
77
  // const now = Date.now();
79
78
  const content = JSON.parse(message.content.toString());
80
79
  const traceId = content.data.param ? content.data.param.traceId : '-';
81
- const from = ((_a = content.data.param) === null || _a === void 0 ? void 0 : _a.from) || '-';
82
- if (content.data.param)
83
- content.data.param.from = 'ㅋㅋㅋ';
84
80
  msaLogger.printInputInterceptorService({
85
81
  traceId,
86
82
  messageBrokerInfo: {
@@ -88,27 +84,16 @@ let LoggingServiceInterceptor = class LoggingServiceInterceptor {
88
84
  payload: JSON.stringify(this.keyCutter(JSON.stringify(request.payload))),
89
85
  },
90
86
  paramInfo: request.param,
91
- traceInfo: {
92
- from,
93
- }
94
87
  });
95
88
  return next.handle()
96
89
  .pipe((0, operators_1.tap)(() => {
97
90
  const elapsed = Date.now() - now;
98
- console.log('와이 출력안되니', content.pattern, from);
99
91
  msaLogger.printOutService({
100
92
  traceId,
101
93
  responseInfo: {
102
94
  status: 200,
103
95
  ms: elapsed,
104
96
  },
105
- messageBrokerInfo: {
106
- messagePatten: content.pattern,
107
- payload: JSON.stringify(this.keyCutter(JSON.stringify(request.payload))),
108
- },
109
- traceInfo: {
110
- from,
111
- }
112
97
  });
113
98
  })).pipe((0, operators_1.catchError)((error) => {
114
99
  msaLogger.printExceptionFliterService({
@@ -119,13 +104,6 @@ let LoggingServiceInterceptor = class LoggingServiceInterceptor {
119
104
  message: error.subMessage,
120
105
  stack: error.stack,
121
106
  },
122
- messageBrokerInfo: {
123
- messagePatten: content.pattern,
124
- payload: JSON.stringify(this.keyCutter(JSON.stringify(request.payload))),
125
- },
126
- traceInfo: {
127
- from,
128
- }
129
107
  });
130
108
  const elapsed = Date.now() - now;
131
109
  msaLogger.printOutService({
@@ -134,13 +112,6 @@ let LoggingServiceInterceptor = class LoggingServiceInterceptor {
134
112
  status: error.status,
135
113
  ms: elapsed,
136
114
  },
137
- messageBrokerInfo: {
138
- messagePatten: content.pattern,
139
- payload: JSON.stringify(this.keyCutter(JSON.stringify(request.payload))),
140
- },
141
- traceInfo: {
142
- from,
143
- }
144
115
  });
145
116
  throw error;
146
117
  }));
@@ -31,8 +31,6 @@ export interface AbstractParam {
31
31
  requestLog?: RequestLog;
32
32
  tossRequestId?: string;
33
33
  retryCount?: number;
34
- /** 이전 호출자 */
35
- from?: string;
36
34
  }
37
35
  export interface File {
38
36
  [key: string]: FileValue | FileValue[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.4.52-jun.8",
3
+ "version": "1.4.52",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",
@@ -17,7 +17,6 @@
17
17
  "@nestjs/common": "^8.2.3",
18
18
  "@nestjs/microservices": "9.0.8",
19
19
  "@yolo-croket-dev/logger": "^1.0.15",
20
- "@yolo-croket-dev/msa-logger": "^2.1.0",
21
20
  "@yolo-croket-dev/redis": "^1.0.23",
22
21
  "@yolo-croket-dev/swagger": "^0.0.7",
23
22
  "axios": "^1.1.3",