From c6cd3cc81d12b837c60cff8a760e24165a2832a5 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 13 Nov 2012 11:24:04 +0000 Subject: Set the detail --- worker/worker | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worker/worker b/worker/worker index b8d7508..655c7ab 100755 --- a/worker/worker +++ b/worker/worker @@ -69,7 +69,7 @@ class Alert alert = Mauve::Proto::Alert.new alert.id = @details['test_type'] alert.summary = "#{@details['test_host']} #{@details['test_alert']}" - alert.detail = "The #{@details['test_type']} test failed against #{@details['test_host']}" + alert.detail = "The #{@details['test_type']} test failed against #{@details['test_host']}: #{detail}" alert.raise_time = Time.now.to_i update.alert << alert @@ -92,7 +92,7 @@ class Alert alert = Mauve::Proto::Alert.new alert.id = @details['test_type'] alert.summary = "#{@details['test_host']} #{@details['test_alert']}" - alert.detail = "The #{@details['test_type']} test failed against #{@details['test_host']}" + alert.detail = "The #{@details['test_type']} test succeeded against #{@details['test_host']}" alert.clear_time = Time.now.to_i update.alert << alert -- cgit v1.2.1