From 400bbb57fe4e46c7ff846d65c7d664fdae801928 Mon Sep 17 00:00:00 2001 From: riking Date: Fri, 25 Jul 2014 12:43:57 -0700 Subject: [PATCH] Suppress trackback CSRF errors from Logster --- config/initializers/logster.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/initializers/logster.rb b/config/initializers/logster.rb index 7a525aa5cb1..13ad568ee74 100644 --- a/config/initializers/logster.rb +++ b/config/initializers/logster.rb @@ -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|