Skip to content

Commit

Permalink
Make sure rack_cache[:verbose] can be set
Browse files Browse the repository at this point in the history
This exploded for me.
Copied a commit from lograge which solved the same issue:
roidrage/lograge#103
  • Loading branch information
jdurand committed Jan 28, 2016
1 parent 9c5fb83 commit c7c9e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/logstasher/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Railtie < Rails::Railtie
config.logstasher.enabled = false

initializer :logstasher, :before => :load_config_initializers do |app|
app.config.action_dispatch.rack_cache[:verbose] = false if app.config.action_dispatch.rack_cache
app.config.action_dispatch.rack_cache[:verbose] = false if rack_cache_hashlike?(app)
LogStasher.setup_before(app.config.logstasher) if app.config.logstasher.enabled
end

Expand Down

0 comments on commit c7c9e84

Please sign in to comment.