mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Suppress trackback CSRF errors from Logster
This commit is contained in:
parent
4101a396ad
commit
400bbb57fe
1 changed files with 4 additions and 2 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue