extend existing log suppression for empty JS errors
This commit is contained in:
parent
6fd3ebb253
commit
bb5dc839a0
|
@ -20,8 +20,8 @@ if Rails.env.production?
|
||||||
#
|
#
|
||||||
/(?m).*?Line: (?:\D|0).*?Column: (?:\D|0)/,
|
/(?m).*?Line: (?:\D|0).*?Column: (?:\D|0)/,
|
||||||
|
|
||||||
# also empty JS errors
|
# suppress empty JS errors (covers MSIE 9, etc)
|
||||||
/^Script error\..*Line: 0/m,
|
/^(Syntax|Script) error.*Line: (0|1)\b/m,
|
||||||
|
|
||||||
# CSRF errors are not providing enough data
|
# CSRF errors are not providing enough data
|
||||||
# suppress unconditionally for now
|
# suppress unconditionally for now
|
||||||
|
@ -37,10 +37,7 @@ if Rails.env.production?
|
||||||
/^ActiveRecord::RecordNotFound/,
|
/^ActiveRecord::RecordNotFound/,
|
||||||
|
|
||||||
# bad asset requested, no need to log
|
# 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
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue