From 7f7147c4b50a217456634c65afa28e02d4960da2 Mon Sep 17 00:00:00 2001 From: Mathieu LEMAIRE Date: Wed, 31 May 2017 17:14:52 +0200 Subject: [PATCH 1/2] data => request in logs --- src/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 79949c6..dd25360 100644 --- a/src/index.js +++ b/src/index.js @@ -250,7 +250,7 @@ function Carotte(config) { config.transport.info(`${rpc ? '▶ ' : '▷ '} ${options.type}/${options.routingKey}`, { context: options.context, headers: options.headers, - data: payload, + request: payload, subscriber: options.context['origin-consumer'] || '', destination: qualifier }); @@ -272,7 +272,7 @@ function Carotte(config) { config.transport.error(`${rpc ? '▶ ' : '▷ '} ${options.type}/${options.routingKey}`, { context: options.context, headers: options.headers, - data: payload, + request: payload, subscriber: options.context['origin-consumer'] || '', destination: qualifier, error: err @@ -480,7 +480,6 @@ function Carotte(config) { config.transport.info(`${rpc ? '◀ ' : '◁ '} ${qualifier}`, { context, headers, - data, response, subscriber: qualifier, destination: '', From f1ab414acb7597f0ef2e55e93292473c9e59fc56 Mon Sep 17 00:00:00 2001 From: Mathieu LEMAIRE Date: Wed, 31 May 2017 17:39:18 +0200 Subject: [PATCH 2/2] 2.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 847b45b..daa24cd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "carotte-amqp", - "version": "1.2.5", + "version": "2.0.0", "description": "AMQP wrapper for the carotte microservice framework", "main": "src/index.js", "repository": "https://github.com/cubyn/node-carotte-amqp",