aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/application
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2012-10-26 16:18:39 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2012-10-26 16:18:52 -0700
commitbf2009f995dd8cf5cbe43908de18580d0e94e2e1 (patch)
treef6a4a3669a46f8523845cefa8f008fc8506b3fd6 /railties/lib/rails/application
parent26f52b2ac1f8d6208bd017e6c0241e33147f5284 (diff)
downloadrails-bf2009f995dd8cf5cbe43908de18580d0e94e2e1.tar.gz
rails-bf2009f995dd8cf5cbe43908de18580d0e94e2e1.tar.bz2
rails-bf2009f995dd8cf5cbe43908de18580d0e94e2e1.zip
Job consumer logs to Rails.logger by default
Diffstat (limited to 'railties/lib/rails/application')
-rw-r--r--railties/lib/rails/application/finisher.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/application/finisher.rb b/railties/lib/rails/application/finisher.rb
index c520f7af9d..2d87b8594a 100644
--- a/railties/lib/rails/application/finisher.rb
+++ b/railties/lib/rails/application/finisher.rb
@@ -99,6 +99,7 @@ module Rails
initializer :activate_queue_consumer do |app|
if config.queue.class == ActiveSupport::Queue
app.queue_consumer = config.queue_consumer || config.queue.consumer
+ app.queue_consumer.logger ||= Rails.logger if app.queue_consumer.respond_to?(:logger=)
app.queue_consumer.start
at_exit { app.queue_consumer.shutdown }
end