summaryrefslogtreecommitdiff
path: root/lib/custodian/alerts
diff options
context:
space:
mode:
Diffstat (limited to 'lib/custodian/alerts')
-rw-r--r--lib/custodian/alerts/file.rb12
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/custodian/alerts/file.rb b/lib/custodian/alerts/file.rb
index 13e74cb..cc2a672 100644
--- a/lib/custodian/alerts/file.rb
+++ b/lib/custodian/alerts/file.rb
@@ -2,7 +2,9 @@
#
-# The SMTP-alerter.
+# The file-alerter.
+#
+# This alert just writes events to a flat-file.
#
module Custodian
@@ -16,7 +18,6 @@ module Custodian
attr_reader :test
-
#
# Constructor - save the test-object away.
#
@@ -34,9 +35,14 @@ module Custodian
end
+ #
+ # Record the duration of the given test.
+ #
def duration( seconds )
- puts "XXX: #{seconds}"
+ write_message( "#{test.get_type}-test against #{test.target} took #{seconds}ms to complete" )
end
+
+
#
# Record a clear event for the given test.
#