extend existing log suppression for empty JS errors

This commit is contained in:
Jeff Atwood 2016-08-29 00:47:11 -07:00
parent 6fd3ebb253
commit bb5dc839a0
1 changed files with 3 additions and 6 deletions

View File

@ -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