From 77ae0b4f7f2d968ea550e171ae2333a3be93b286 Mon Sep 17 00:00:00 2001 From: Jeff Atwood <jatwood@codinghorror.com> Date: Fri, 16 Jan 2015 17:28:50 -0800 Subject: [PATCH] block empty JS errors from Logster --- config/initializers/logster.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/initializers/logster.rb b/config/initializers/logster.rb index d280a18f6..d0dcaca0b 100644 --- a/config/initializers/logster.rb +++ b/config/initializers/logster.rb @@ -7,6 +7,16 @@ if Rails.env.production? /^ActionController::UnknownFormat/, + # super annoying empty JS errors in the form of + # + # Script error. + # Url: + # Line: 0 + # Column: 0 + # Window Location: http://discourse.codinghorror.com/t/the-god-login/2924/19 + # + /^Script error.\nUrl: \nLine: 0?\n/, + # suppress trackback spam bots Logster::IgnorePattern.new("Can't verify CSRF token authenticity", { REQUEST_URI: /\/trackback\/$/ }),