Skip to content

Commit

Permalink
Add timestamp to worker log messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
wvanbergen committed Feb 2, 2010
1 parent fb46714 commit 38ca8ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/delayed/worker.rb
Expand Up @@ -132,7 +132,7 @@ def reschedule(job, time = nil)

def say(text, level = Logger::INFO)
puts text unless @quiet
logger.add level, text if logger
logger.add level, "#{Time.now.strftime('%FT%T%z')}: #{text}" if logger
end

protected
Expand Down

0 comments on commit 38ca8ff

Please sign in to comment.