@yolo-croket-dev/core 1.4.52-jun.13 → 1.4.52-jun.15
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,20 +74,21 @@ let LoggingServiceInterceptor = class LoggingServiceInterceptor {
|
|
|
74
74
|
const now = Date.now();
|
|
75
75
|
// const args = context.getArgs();
|
|
76
76
|
const rmqContext = context.switchToRpc().getContext();
|
|
77
|
-
const channel = rmqContext.getChannelRef();
|
|
78
77
|
const originalMessage = rmqContext.getMessage();
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
console.log('
|
|
82
|
-
console.log('originalMessage
|
|
78
|
+
const ctx = context.switchToHttp();
|
|
79
|
+
const request = ctx.getRequest();
|
|
80
|
+
// console.log('channel', channel);
|
|
81
|
+
// console.log('originalMessage', originalMessage);
|
|
82
|
+
// console.log('originalMessage.properties', originalMessage.properties);
|
|
83
|
+
// console.log('originalMessage.properties.headers', originalMessage.properties.headers);
|
|
83
84
|
const originalcontent = originalMessage.content;
|
|
84
85
|
const content = JSON.parse(originalcontent.toString());
|
|
85
86
|
const traceId = content.data.param ? content.data.param.traceId : '-';
|
|
86
87
|
const from = ((_a = content.data.param) === null || _a === void 0 ? void 0 : _a.from) || '-';
|
|
88
|
+
/** from 값 변경 */
|
|
87
89
|
content.data.param.from = `${SERVER_NAME}: ${content.pattern}`;
|
|
90
|
+
console.log('hi@', content);
|
|
88
91
|
originalMessage.content = Buffer.from(JSON.stringify(content));
|
|
89
|
-
const ctx = context.switchToHttp();
|
|
90
|
-
const request = ctx.getRequest();
|
|
91
92
|
msaLogger.printInputInterceptorService({
|
|
92
93
|
traceId,
|
|
93
94
|
messageBrokerInfo: {
|
|
@@ -100,7 +101,6 @@ let LoggingServiceInterceptor = class LoggingServiceInterceptor {
|
|
|
100
101
|
return next.handle()
|
|
101
102
|
.pipe((0, operators_1.tap)(() => {
|
|
102
103
|
const elapsed = Date.now() - now;
|
|
103
|
-
console.log('와이 출력안되니', content.pattern, from);
|
|
104
104
|
msaLogger.printOutService({
|
|
105
105
|
traceId,
|
|
106
106
|
responseInfo: {
|