summaryrefslogtreecommitdiff
path: root/lib/custodian
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
commitbd6e8f9cf3d73e149b5d241b23c271fb1ef38299 (patch)
tree8673d4013c8bcff7fe86aa697d52f943e89032a3 /lib/custodian
parent1a71d2165250c91041b3801a0584c8b83a35cf48 (diff)
Show the date/time as well as logged messages.
Diffstat (limited to 'lib/custodian')
-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