@yolo-croket-dev/core 1.5.2 → 1.5.3
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.
|
@@ -74,8 +74,8 @@ let LoggingServiceInterceptor = class LoggingServiceInterceptor {
|
|
|
74
74
|
// const args = context.getArgs();
|
|
75
75
|
const rmqContext = context.switchToRpc().getContext();
|
|
76
76
|
const data = context.switchToRpc().getData();
|
|
77
|
-
const
|
|
78
|
-
const
|
|
77
|
+
const pastFrom = data.param.from ? JSON.parse(JSON.stringify(data.param.from)) : '-';
|
|
78
|
+
const pastFroms = data.param.froms ? JSON.parse(JSON.stringify(data.param.froms)) : [pastFrom];
|
|
79
79
|
const originalMessage = rmqContext.getMessage();
|
|
80
80
|
const ctx = context.switchToHttp();
|
|
81
81
|
const request = ctx.getRequest();
|
|
@@ -85,8 +85,9 @@ let LoggingServiceInterceptor = class LoggingServiceInterceptor {
|
|
|
85
85
|
/** from 변경 */
|
|
86
86
|
const tmpFrom = `${SERVER_NAME}: ${content.pattern}`;
|
|
87
87
|
data.param.from = tmpFrom;
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
const tmpFroms = JSON.parse(JSON.stringify(pastFroms));
|
|
89
|
+
tmpFroms.push(tmpFrom);
|
|
90
|
+
data.param.froms = tmpFroms;
|
|
90
91
|
msaLogger.printInputInterceptorService({
|
|
91
92
|
traceId,
|
|
92
93
|
messageBrokerInfo: {
|
|
@@ -95,8 +96,8 @@ let LoggingServiceInterceptor = class LoggingServiceInterceptor {
|
|
|
95
96
|
},
|
|
96
97
|
paramInfo: request.param,
|
|
97
98
|
traceInfo: {
|
|
98
|
-
from,
|
|
99
|
-
froms,
|
|
99
|
+
from: pastFrom,
|
|
100
|
+
froms: pastFroms,
|
|
100
101
|
},
|
|
101
102
|
});
|
|
102
103
|
return next.handle()
|
|
@@ -113,8 +114,8 @@ let LoggingServiceInterceptor = class LoggingServiceInterceptor {
|
|
|
113
114
|
payload: JSON.stringify(this.keyCutter(JSON.stringify(request.payload))),
|
|
114
115
|
},
|
|
115
116
|
traceInfo: {
|
|
116
|
-
from,
|
|
117
|
-
froms,
|
|
117
|
+
from: pastFrom,
|
|
118
|
+
froms: pastFroms,
|
|
118
119
|
},
|
|
119
120
|
});
|
|
120
121
|
})).pipe((0, operators_1.catchError)((error) => {
|
|
@@ -131,8 +132,8 @@ let LoggingServiceInterceptor = class LoggingServiceInterceptor {
|
|
|
131
132
|
payload: JSON.stringify(this.keyCutter(JSON.stringify(request.payload))),
|
|
132
133
|
},
|
|
133
134
|
traceInfo: {
|
|
134
|
-
from,
|
|
135
|
-
froms,
|
|
135
|
+
from: pastFrom,
|
|
136
|
+
froms: pastFroms,
|
|
136
137
|
},
|
|
137
138
|
});
|
|
138
139
|
const elapsed = Date.now() - now;
|
|
@@ -147,8 +148,8 @@ let LoggingServiceInterceptor = class LoggingServiceInterceptor {
|
|
|
147
148
|
payload: JSON.stringify(this.keyCutter(JSON.stringify(request.payload))),
|
|
148
149
|
},
|
|
149
150
|
traceInfo: {
|
|
150
|
-
from,
|
|
151
|
-
froms,
|
|
151
|
+
from: pastFrom,
|
|
152
|
+
froms: pastFroms,
|
|
152
153
|
},
|
|
153
154
|
});
|
|
154
155
|
throw error;
|