Skip to content

Commit 2cf04e9

Browse files
authored
Merge pull request #160 from devtron-labs/slack-notif
misc: version upgrade
2 parents 8f23a88 + e6f4845 commit 2cf04e9

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/destination/destinationHandlers/slackHandler.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,9 @@ export class SlackService implements Handler {
148148
jsons = Mustache.render(template, event.payload.scoopNotificationConfig.data);
149149
}else{
150150
let parsedEvent = this.mh.parseEvent(event as Event, true);
151-
console.log('=== SLACK DEBUG: Parsed event data ===');
152-
console.log(JSON.stringify(parsedEvent, null, 2));
153151
jsons = Mustache.render(template, parsedEvent);
154152
}
155-
156-
console.log('=== SLACK DEBUG: Rendered Mustache template ===');
157-
console.log(jsons);
158153
let j = JSON.parse(jsons)
159-
console.log('=== SLACK DEBUG: Final Slack payload ===');
160-
console.log(JSON.stringify(j, null, 2));
161154
const res = await sdk.send(
162155
{
163156
slack: j
@@ -166,8 +159,6 @@ export class SlackService implements Handler {
166159
return res;
167160
} catch (error) {
168161
this.logger.error('slack sendNotification error', error)
169-
console.log('=== SLACK DEBUG: Error details ===');
170-
console.log(error);
171162
throw new CustomError("Unable to send slack notification",500);
172163
}
173164
}

0 commit comments

Comments
 (0)