@yolo-croket-dev/core 1.9.7-slowquery.12 → 1.9.7-slowquery.13
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.
|
@@ -116,7 +116,7 @@ let LoggingServiceInterceptor = class LoggingServiceInterceptor {
|
|
|
116
116
|
pattern = originalMessage.messagePattern;
|
|
117
117
|
// const originalcontent = originalMessage.content;
|
|
118
118
|
// const content = JSON.parse(originalcontent.toString()) as IContent;
|
|
119
|
-
payload = context.switchToHttp().getRequest().
|
|
119
|
+
payload = context.switchToHttp().getRequest().payload;
|
|
120
120
|
}
|
|
121
121
|
// // @TODO: 삭제
|
|
122
122
|
// if (pastFromsForMetadata) {
|
|
@@ -136,8 +136,8 @@ let LoggingServiceInterceptor = class LoggingServiceInterceptor {
|
|
|
136
136
|
// const ctx = context.switchToHttp();
|
|
137
137
|
// const request = ctx.getRequest() as IRequest;
|
|
138
138
|
const pastParam = JSON.parse(JSON.stringify(param));
|
|
139
|
-
const pastFrom = pastParam.from;
|
|
140
|
-
const pastFroms = pastParam.froms;
|
|
139
|
+
const pastFrom = pastParam.from || '-';
|
|
140
|
+
const pastFroms = pastParam.froms || [pastFrom];
|
|
141
141
|
const traceId = param ? param.traceId : '-';
|
|
142
142
|
/** from 변경 */
|
|
143
143
|
const tmpFrom = `${SERVER_NAME}: ${pattern}`;
|