Skip to content

Commit 6682aae

Browse files
authored
Merge pull request #76 from cubyn/fix/coherent-logs
data => request in logs
2 parents 162bd40 + 7f7147c commit 6682aae

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/index.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ function Carotte(config) {
250250
config.transport.info(`${rpc ? '▶ ' : '▷ '} ${options.type}/${options.routingKey}`, {
251251
context: options.context,
252252
headers: options.headers,
253-
data: payload,
253+
request: payload,
254254
subscriber: options.context['origin-consumer'] || '',
255255
destination: qualifier
256256
});
@@ -272,7 +272,7 @@ function Carotte(config) {
272272
config.transport.error(`${rpc ? '▶ ' : '▷ '} ${options.type}/${options.routingKey}`, {
273273
context: options.context,
274274
headers: options.headers,
275-
data: payload,
275+
request: payload,
276276
subscriber: options.context['origin-consumer'] || '',
277277
destination: qualifier,
278278
error: err
@@ -480,7 +480,6 @@ function Carotte(config) {
480480
config.transport.info(`${rpc ? '◀ ' : '◁ '} ${qualifier}`, {
481481
context,
482482
headers,
483-
data,
484483
response,
485484
subscriber: qualifier,
486485
destination: '',

0 commit comments

Comments
 (0)