From 4db9b7a36aa025aa7fee90bc6b97b41a0813bf23 Mon Sep 17 00:00:00 2001 From: Raffael Schmid Date: Wed, 6 Feb 2013 14:18:33 +0100 Subject: [PATCH] add app name and display just the error class instead of the truncated message --- app/models/notification_services/hubot_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/notification_services/hubot_service.rb b/app/models/notification_services/hubot_service.rb index 379cbae..b91b3e2 100644 --- a/app/models/notification_services/hubot_service.rb +++ b/app/models/notification_services/hubot_service.rb @@ -22,7 +22,7 @@ class NotificationServices::HubotService < NotificationService end def message_for_hubot(problem) - "#{notification_description(problem)} #{problem_url(problem)}" + "[#{problem.app.name}][#{problem.environment}][#{problem.where}]: #{problem.error_class} #{problem_url(problem)}" end def create_notification(problem) -- libgit2 0.21.2