Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix build for Queue. #7664

Merged
merged 1 commit into from

2 participants

@arunagw
Collaborator

No description provided.

@arunagw
Collaborator

Fixes


  1) Error:
608test_0010_a custom consumer implementation can be provided(ApplicationTests::QueueTest):
609NoMethodError: undefined method `[]' for #<ActiveSupport::Logger:0x9c4a8ac>
610    /home/vagrant/builds/rails/rails/activesupport/lib/active_support/queueing.rb:99:in `initialize'
611    /home/vagrant/builds/rails/rails/activesupport/lib/active_support/queueing.rb:94:in `new'
612    /home/vagrant/builds/rails/rails/activesupport/lib/active_support/queueing.rb:94:in `start'
613    /home/vagrant/builds/rails/rails/railties/lib/rails/application/finisher.rb:101:in `block in <module:Finisher>'
614    /home/vagrant/builds/rails/rails/railties/lib/rails/initializable.rb:30:in `instance_exec'
615    /home/vagrant/builds/rails/rails/railties/lib/rails/initializable.rb:30:in `run'
616    /home/vagrant/builds/rails/rails/railties/lib/rails/initializable.rb:55:in `block in run_initializers'
617    /home/vagrant/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/tsort.rb:150:in `block in tsort_each'
618    /home/vagrant/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
619    /home/vagrant/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/tsort.rb:219:in `each_strongly_connected_component_from'
620    /home/vagrant/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/tsort.rb:182:in `block in each_strongly_connected_component'
621    /home/vagrant/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/tsort.rb:180:in `each'
622    /home/vagrant/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/tsort.rb:180:in `each_strongly_connected_component'
623    /home/vagrant/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/tsort.rb:148:in `tsort_each'
624    /home/vagrant/builds/rails/rails/railties/lib/rails/initializable.rb:54:in `run_initializers'
625    /home/vagrant/builds/rails/rails/railties/lib/rails/application.rb:176:in `initialize!'
626    /home/vagrant/builds/rails/rails/railties/lib/rails/railtie/configurable.rb:30:in `method_missing'
627    /tmp/d20120917-9818-40ve3h/app/config/environment.rb:5:in `<top (required)>'
628    /home/vagrant/builds/rails/rails/railties/test/isolation/abstract_unit.rb:52:in `require'
629    /home/vagrant/builds/rails/rails/railties/test/isolation/abstract_unit.rb:52:in `app'
630    test/application/queue_test.rb:178:in `block in <class:QueueTest>'
@rafaelfranca rafaelfranca merged commit c1b1215 into rails:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 17, 2012
  1. @arunagw

    Fix build for Queue.

    arunagw authored
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/application/finisher.rb
View
2  railties/lib/rails/application/finisher.rb
@@ -98,7 +98,7 @@ module Finisher
initializer :activate_queue_consumer do |app|
if config.queue == ActiveSupport::Queue
- app.queue_consumer = config.queue_consumer.start(app.queue, Rails.logger)
+ app.queue_consumer = config.queue_consumer.start(app.queue, {logger: Rails.logger})
at_exit { app.queue_consumer.shutdown }
end
end
Something went wrong with that request. Please try again.