Permalink
Browse files

match Delayed::Worker timestamp style

  • Loading branch information...
1 parent acfb396 commit 722181073b17dfe4f8964d11b9c45bf84dec1a24 guns committed Aug 24, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/delayed/daemon_tasks.rb
@@ -42,7 +42,9 @@ def kill_master(signal)
master = fork do
$0 = 'delayed_worker.master'
rails_logger = lambda do |msg|
- File.open(logfile, 'a') { |f| f.puts "#{Time.now}: [#{$0}] #{msg}" }
+ File.open(logfile, 'a') do |f|
+ f.puts "#{Time.now.strftime '%FT%T%z'}: [#{$0}] #{msg}"
+ end
end
# create pidfile or abort

0 comments on commit 7221810

Please sign in to comment.