Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

match Delayed::Worker timestamp style

  • Loading branch information...
commit 722181073b17dfe4f8964d11b9c45bf84dec1a24 1 parent acfb396
guns authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/delayed/daemon_tasks.rb
4 lib/delayed/daemon_tasks.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.