summaryrefslogtreecommitdiff
path: root/worker
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-13 11:24:04 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-13 11:24:04 +0000
commitc6cd3cc81d12b837c60cff8a760e24165a2832a5 (patch)
tree7a25701ecb689d2653379dd8dd2565ae2a491535 /worker
parent214f49dd33419170a8338fb460887852b5d01016 (diff)
Set the detail
Diffstat (limited to 'worker')
-rwxr-xr-xworker/worker4
1 files 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