Skip to content

Commit 3a1116a

Browse files
author
sachin-maheshwari
authored
Merge pull request #101 from topcoder-platform/dev
fixing debug message issue..was printing entire token.
2 parents 9a37d61 + ff6ac70 commit 3a1116a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

connect/notificationServices/email.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ function handler(topicName, messageJSON, notification) {
274274
};
275275
logger.debug('body', body);
276276
logger.debug(`body for generating token: ${JSON.stringify(body)}`);
277-
logger.debug(`AUTH_SECRET: ${config.AUTH_SECRET.substring(-5)}`);
277+
logger.debug(`AUTH_SECRET: ${config.AUTH_SECRET.substring(0, 5)}`);
278278
const token = jwt.sign(body, config.AUTH_SECRET, { noTimestamp: true }).split('.')[2];
279279
logger.debug(`token: ${token}`);
280280

@@ -332,7 +332,7 @@ function handler(topicName, messageJSON, notification) {
332332
} else {
333333
// send single field "notificationsHTML" with the rendered template
334334
eventMessage.data = wrapIndividualNotification({ data: eventMessage });
335-
console.log(eventMessage.data.contents);
335+
//console.log(eventMessage.data.contents);
336336

337337
// send event to bus api
338338
return busService.postEvent({

0 commit comments

Comments
 (0)