summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2013-05-15 13:02:09 +0100
committerSteve Kemp <steve@steve.org.uk>2013-05-15 13:02:09 +0100
commit70572b2cef15ba060564e0a6717dfc612ea6cb47 (patch)
tree6265d17f22da9780c79925a7a52e3594e1830c34
parenta9f44b3c7aecc38e6eab702f22332e0da626cef3 (diff)
Use log_message() not puts().
-rw-r--r--lib/custodian/worker.rb10
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 )