Skip to content

Commit

Permalink
Set auto_flushing to true on logger to disable Rails' buffered logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed Feb 5, 2010
1 parent 38ca8ff commit 4d46b5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/delayed/command.rb
Expand Up @@ -61,6 +61,7 @@ def run(worker_name = nil)
end

Delayed::Worker.logger = Rails.logger
Delayed::Worker.logger.auto_flushing = true
ActiveRecord::Base.connection.reconnect!

worker = Delayed::Worker.new(@options)
Expand Down

0 comments on commit 4d46b5f

Please sign in to comment.