Skip to content

Commit

Permalink
refactor: log alert email subject
Browse files Browse the repository at this point in the history
  • Loading branch information
mvayngrib committed Jul 26, 2018
1 parent e5f4b91 commit 2b195f5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/in-house-bot/log-processor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,9 @@ export const sendLogAlert = async ({ bot, conf, alert }: {
}) => {
const { senderEmail, destinationEmails } = conf
const body = JSON.stringify(alert, null, 2)
const { stackName, accountId } = alert
await bot.mailer.send({
subject: 'logging alert',
subject: `logging alert: ${stackName} (${accountId})`,
from: senderEmail,
to: destinationEmails,
body,
Expand Down

0 comments on commit 2b195f5

Please sign in to comment.