From 20506b0a54f0ad7a4b1a49b95f2090da765f0d93 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 28 Apr 2015 13:15:41 +0100 Subject: Show the date/time as well as logged messages. --- lib/custodian/worker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.1