Skip to content

Commit

Permalink
match Delayed::Worker timestamp style
Browse files Browse the repository at this point in the history
  • Loading branch information
guns committed Aug 24, 2010
1 parent acfb396 commit 7221810
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/delayed/daemon_tasks.rb
Expand Up @@ -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
Expand Down

0 comments on commit 7221810

Please sign in to comment.