summaryrefslogtreecommitdiff
path: root/lib/custodian/worker.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-04-28 13:15:41 +0100
committerSteve Kemp <steve@steve.org.uk>2015-04-28 13:15:41 +0100
commit20506b0a54f0ad7a4b1a49b95f2090da765f0d93 (patch)
treee12013795ea315cb145fb4bf4fa14076514cfd96 /lib/custodian/worker.rb
parente987910d0e1e0f16b5000f4cf2f4ba576761c1bd (diff)
Show the date/time as well as logged messages.
Diffstat (limited to 'lib/custodian/worker.rb')
-rw-r--r--lib/custodian/worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/custodian/worker.rb b/lib/custodian/worker.rb
index 7910a29..9d2d0e7 100644
--- a/lib/custodian/worker.rb
+++ b/lib/custodian/worker.rb
@@ -93,7 +93,7 @@ module Custodian
# Show a message on STDOUT if "--verbose" was specified.
#
def log_message(msg)
- puts msg if ENV['VERBOSE']
+ puts "#{Time.now.to_s} #{msg}" if ENV['VERBOSE']
end