Change slack message to point to LogDNA instead of paper trail.

This commit is contained in:
Rob 2016-09-14 16:15:57 -07:00
parent 8d4d617069
commit 72d44ca5fb

View file

@ -28,7 +28,7 @@ module.exports.sendSlackMessage = (message, rooms=['tower'], options={}) ->
unfurl_media: false
if options.papertrail
secondsFromEpoch = Math.floor(new Date().getTime() / 1000)
link = "https://papertrailapp.com/groups/488214/events?time=#{secondsFromEpoch}"
link = "https://app.logdna.com/logs/view?t=timestamp:#{secondsFromEpoch}"
form.text += " #{link}"
# https://api.slack.com/docs/formatting
form.text = form.text.replace('&', '&amp;').replace('<', '&lt;').replace('>', '&gt;')