From 44d45c6eda5b34d091080b56370b787ba1bd873f Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 7 Aug 2014 10:30:12 +1000 Subject: [PATCH] FIX: logster update, enable ignore patterns --- Gemfile.lock | 2 +- config/initializers/logster.rb | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 2ef8b5e3b5f..e7d2f509e5a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -157,7 +157,7 @@ GEM thor (~> 0.15) libv8 (3.16.14.3) listen (0.7.3) - logster (0.1.3) + logster (0.1.4) lru_redux (0.8.1) mail (2.5.4) mime-types (~> 1.16) diff --git a/config/initializers/logster.rb b/config/initializers/logster.rb index eeb63381969..9176d258a0d 100644 --- a/config/initializers/logster.rb +++ b/config/initializers/logster.rb @@ -1,13 +1,13 @@ if Rails.env.production? - # Logster.store.ignore = [ - # # honestly, Rails should not be logging this, its real noisy - # /^ActionController::RoutingError \(No route matches/, + Logster.store.ignore = [ + # honestly, Rails should not be logging this, its real noisy + /^ActionController::RoutingError \(No route matches/, - # /^PG::Error: ERROR:\s+duplicate key/, + /^PG::Error: ERROR:\s+duplicate key/, - # # suppress trackback spam bots - # Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /\/trackback\/$/ }) - # ] + # suppress trackback spam bots + Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /\/trackback\/$/ }) + ] Logster.config.authorize_callback = lambda{|env| user = CurrentUser.lookup_from_env(env)