Skip to content

Commit 30fd1ab

Browse files
committed
updated slack message text
1 parent f96b31a commit 30fd1ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ exports.handler = async (event, context) => {
1717
const lastStatus = event.detail.lastStatus;
1818
const stoppedReason = event.detail.stoppedReason;
1919

20-
if(lastStatus === "STOPPED") {
21-
const message = `_[${account}]_ *${service}* in ${region} is *STOPPED*.\n*Reason:* ${stoppedReason}.`;
20+
if(lastStatus === 'STOPPED') {
21+
const message = `_[${account}]_ task *${service}* in ${region} is *STOPPED*.\n*Reason:* ${stoppedReason}.`;
2222
console.error(message);
2323

2424
await webhook.send({
2525
text: message
2626
});
2727
} else {
28-
console.log(`[${account}] ${service} in ${region} is ${lastStatus}`);
28+
console.log(`[${account}] task ${service} in ${region} is ${lastStatus}`);
2929
}
3030
};

0 commit comments

Comments
 (0)