From 6fd3ebb253ddc6d046521b3d42f5890915493fda Mon Sep 17 00:00:00 2001 From: Jeff Atwood Date: Mon, 29 Aug 2016 00:35:01 -0700 Subject: [PATCH] don't log any JavaScript "errors" from IE 9 --- config/initializers/100-logster.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/initializers/100-logster.rb b/config/initializers/100-logster.rb index 58da5e46865..5edc6b6d299 100644 --- a/config/initializers/100-logster.rb +++ b/config/initializers/100-logster.rb @@ -7,7 +7,6 @@ if Rails.env.production? /^ActionController::UnknownFormat/, /^ActionController::UnknownHttpMethod/, - /^AbstractController::ActionNotFound/, # alihack is really annoying, nothing really we can do about this @@ -38,7 +37,10 @@ if Rails.env.production? /^ActiveRecord::RecordNotFound/, # bad asset requested, no need to log - /^ActionController::BadRequest/ + /^ActionController::BadRequest/, + + # IE9 is *wildly* incompatible with Discourse in A.D. 2016 + /MSIE 9.0;/ ] end