diff options
author | Steve Kemp <steve@steve.org.uk> | 2013-05-15 13:02:09 +0100 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2013-05-15 13:02:09 +0100 |
commit | d3f113e0defb990bdaff81900e991f2e8036166f (patch) | |
tree | b6a0c0ab054cd94da95ec764d4f20ee0e402dfd5 /lib | |
parent | e7406b080cb36925ea290383531c7c3c41d9d5b9 (diff) |
Use log_message() not puts().
Diffstat (limited to 'lib')
-rw-r--r-- | lib/custodian/worker.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/custodian/worker.rb b/lib/custodian/worker.rb index 38e356c..b502e1b 100644 --- a/lib/custodian/worker.rb +++ b/lib/custodian/worker.rb @@ -201,7 +201,7 @@ module Custodian # be no delay. If the test fails then we'll sleep. # if ( ( @retry_delay > 0 ) && ( count != 1 ) ) - puts "Sleeping for #{@retry_delay} seconds to allow cool-down" + log_message( "Sleeping for #{@retry_delay} seconds to allow cool-down" ) sleep( @retry_delay ) end @@ -238,7 +238,7 @@ module Custodian end rescue => ex - puts "Exception raised processing job: #{ex}" + log_message( "Exception raised processing job: #{ex}" ) ensure # @@ -265,7 +265,7 @@ module Custodian target = @settings.alerter_target( alerter ) alert.set_target( target ) - puts "Target for alert is #{target}" + log_message("Target for alert is #{target}") # give the alerter a reference to the settings object. alert.set_settings( @settings ) @@ -285,7 +285,7 @@ module Custodian target = @settings.alerter_target( alerter ) alert.set_target( target ) - puts "Target for alert is #{target}" + log_message( "Target for alert is #{target}" ) # give the alerter a reference to the settings object. alert.set_settings( @settings ) @@ -304,7 +304,7 @@ module Custodian target = @settings.alerter_target( alerter ) alert.set_target( target ) - puts "Target for alert is #{target}" + log_message( "Target for alert is #{target}" ) # give the alerter a reference to the settings object. alert.set_settings( @settings ) |