From bd6e8f9cf3d73e149b5d241b23c271fb1ef38299 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/custodian') 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