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