Skip to content

Commit

Permalink
Set the solrizer logger in the railtie. Fixes #997
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Mar 8, 2016
1 parent e407830 commit 6286c6d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/active_fedora/railtie.rb
Expand Up @@ -8,7 +8,10 @@ class Railtie < Rails::Railtie
end

initializer "active_fedora.logger" do
ActiveSupport.on_load(:active_fedora) { self.logger ||= ::Rails.logger }
ActiveSupport.on_load(:active_fedora) do
self.logger ||= ::Rails.logger
Solrizer.logger ||= logger
end
end

generators do
Expand Down

0 comments on commit 6286c6d

Please sign in to comment.