Merge pull request #2585 from riking/logster-csrf

Suppress trackback CSRF errors from Logster
This commit is contained in:
Sam 2014-07-29 12:34:25 +10:00
commit 1dcc10d035

View File

@ -1,7 +1,9 @@
if Rails.env.production?
# honestly, Rails should not be logging this, its real noisy
Logster.store.ignore = [
/^ActionController::RoutingError \(No route matches/
# honestly, Rails should not be logging this, its real noisy
/^ActionController::RoutingError \(No route matches/,
# suppress trackback spam bots
Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /\/trackback\/$/ })
]
Logster.config.authorize_callback = lambda{|env|