From 6bc5d454c8206def638e6fd01420de9bf196034d Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Thu, 15 Nov 2012 13:49:41 +0000 Subject: Log [attempt/max] rather than just attempt for failures --- lib/custodian.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/custodian.rb') diff --git a/lib/custodian.rb b/lib/custodian.rb index e93b790..0b2caf6 100644 --- a/lib/custodian.rb +++ b/lib/custodian.rb @@ -69,10 +69,10 @@ class Custodian @retry_count=3 end - log_message( "We'll run each test #{@retry_count} before alerting failures." ) end + # # Write the given message to our logfile - and show it to the console # if we're running with '--verbose' in play @@ -177,7 +177,7 @@ class Custodian # while ( ( count < @retry_count ) && ( success == false ) ) - log_message( "Running test - attempt #{count}" ) + log_message( "Running test - [#{count}/#{@retry_count}]" ) if ( obj.run_test() ) log_message( "Test succeeed - clearing alert" ) -- cgit v1.2.1