Commit 4db9b7a36aa025aa7fee90bc6b97b41a0813bf23
1 parent
d3947e2a
Exists in
master
and in
1 other branch
add app name and display just the error class instead of the truncated message
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/notification_services/hubot_service.rb
| @@ -22,7 +22,7 @@ class NotificationServices::HubotService < NotificationService | @@ -22,7 +22,7 @@ class NotificationServices::HubotService < NotificationService | ||
| 22 | end | 22 | end |
| 23 | 23 | ||
| 24 | def message_for_hubot(problem) | 24 | def message_for_hubot(problem) |
| 25 | - "#{notification_description(problem)} #{problem_url(problem)}" | 25 | + "[#{problem.app.name}][#{problem.environment}][#{problem.where}]: #{problem.error_class} #{problem_url(problem)}" |
| 26 | end | 26 | end |
| 27 | 27 | ||
| 28 | def create_notification(problem) | 28 | def create_notification(problem) |