From bb5dc839a0f77d89fb7593344a245dd2fc9663af Mon Sep 17 00:00:00 2001
From: Jeff Atwood <jatwood@codinghorror.com>
Date: Mon, 29 Aug 2016 00:47:11 -0700
Subject: [PATCH] extend existing log suppression for empty JS errors

---
 config/initializers/100-logster.rb | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/config/initializers/100-logster.rb b/config/initializers/100-logster.rb
index 5edc6b6d2..8e5e21e99 100644
--- a/config/initializers/100-logster.rb
+++ b/config/initializers/100-logster.rb
@@ -20,8 +20,8 @@ if Rails.env.production?
     #
     /(?m).*?Line: (?:\D|0).*?Column: (?:\D|0)/,
 
-    # also empty JS errors
-    /^Script error\..*Line: 0/m,
+    # suppress empty JS errors (covers MSIE 9, etc)
+    /^(Syntax|Script) error.*Line: (0|1)\b/m,
 
     # CSRF errors are not providing enough data
     # suppress unconditionally for now
@@ -37,10 +37,7 @@ if Rails.env.production?
     /^ActiveRecord::RecordNotFound/,
 
     # bad asset requested, no need to log
-    /^ActionController::BadRequest/,
-
-    # IE9 is *wildly* incompatible with Discourse in A.D. 2016
-    /MSIE 9.0;/
+    /^ActionController::BadRequest/
   ]
 end