Skip to content
Browse files

Pass our logger to rack-protection. Fixes #1236.

  • Loading branch information...
1 parent 4f679c7 commit 39fc7f1c3319d2f7d7292bc7e675bb49b2c12f66 Darío Javier Cravero committed Apr 9, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 padrino-core/lib/padrino-core/application.rb
View
6 padrino-core/lib/padrino-core/application.rb
@@ -280,9 +280,11 @@ def setup_csrf_protection(builder)
if allow_disabled_csrf?
builder.use Rack::Protection::AuthenticityToken,
:reaction => :report,
- :report_key => 'protection.csrf.failed'
+ :report_key => 'protection.csrf.failed',
+ :logger => logger
else
- builder.use Rack::Protection::AuthenticityToken
+ builder.use Rack::Protection::AuthenticityToken,
+ :logger => logger
end
end
end

0 comments on commit 39fc7f1

Please sign in to comment.
Something went wrong with that request. Please try again.