diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-04-28 13:15:41 +0100 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-04-28 13:15:41 +0100 |
commit | 20506b0a54f0ad7a4b1a49b95f2090da765f0d93 (patch) | |
tree | e12013795ea315cb145fb4bf4fa14076514cfd96 /lib/custodian | |
parent | e987910d0e1e0f16b5000f4cf2f4ba576761c1bd (diff) |
Show the date/time as well as logged messages.
Diffstat (limited to 'lib/custodian')
-rw-r--r-- | lib/custodian/worker.rb | 2 |
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 |