Skip to content

Commit abfbcdf

Browse files
author
vikasrohit
authored
Updated log copy
It was confusing with message api topic. Added `bus` keyword before `topic` to make it more clear,
1 parent 9c4f5ac commit abfbcdf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/services/busApi.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async function getClient() {
4444
* @return {Promise} new event promise
4545
*/
4646
function createEvent(topic, payload, logger) {
47-
logger.debug(`Sending message to topic ${topic}: ${JSON.stringify(payload)}`);
47+
logger.debug(`Sending message to bus topic ${topic}: ${JSON.stringify(payload)}`);
4848
return getClient().then((busClient) => {
4949
logger.debug(`calling bus-api for topic ${topic}`);
5050
return busClient.post('/bus/events', {
@@ -54,9 +54,9 @@ function createEvent(topic, payload, logger) {
5454
'mime-type': 'application/json',
5555
payload,
5656
}).then((resp) => {
57-
logger.debug(`Sent event to bus-api for topic ${topic}`);
58-
logger.debug(`Sent event to bus-api for topic ${topic} [data]: ${_.get(resp, 'data')}`);
59-
logger.debug(`Sent event to bus-api for topic ${topic} [status]: ${_.get(resp, 'status')}`);
57+
logger.debug(`Sent event to bus-api for bus topic ${topic}`);
58+
logger.debug(`Sent event to bus-api for bus topic ${topic} [data]: ${_.get(resp, 'data')}`);
59+
logger.debug(`Sent event to bus-api for bus topic ${topic} [status]: ${_.get(resp, 'status')}`);
6060
}).catch((error) => {
6161
logger.debug(`Error sending event to bus-api for topic ${topic}`);
6262
if (error.response) {

0 commit comments

Comments
 (0)