From ff6ac70674c3591cba58afab39c13d0a40fd889a Mon Sep 17 00:00:00 2001 From: Sachin Maheshwari Date: Thu, 28 Mar 2019 12:45:15 +0530 Subject: [PATCH] fixing debug message issue..was printing entire token. --- connect/notificationServices/email.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connect/notificationServices/email.js b/connect/notificationServices/email.js index d184919..ff6b849 100644 --- a/connect/notificationServices/email.js +++ b/connect/notificationServices/email.js @@ -274,7 +274,7 @@ function handler(topicName, messageJSON, notification) { }; logger.debug('body', body); logger.debug(`body for generating token: ${JSON.stringify(body)}`); - logger.debug(`AUTH_SECRET: ${config.AUTH_SECRET.substring(-5)}`); + logger.debug(`AUTH_SECRET: ${config.AUTH_SECRET.substring(0, 5)}`); const token = jwt.sign(body, config.AUTH_SECRET, { noTimestamp: true }).split('.')[2]; logger.debug(`token: ${token}`); @@ -332,7 +332,7 @@ function handler(topicName, messageJSON, notification) { } else { // send single field "notificationsHTML" with the rendered template eventMessage.data = wrapIndividualNotification({ data: eventMessage }); - console.log(eventMessage.data.contents); + //console.log(eventMessage.data.contents); // send event to bus api return busService.postEvent({