kopia lustrzana https://github.com/c9/core
filter out DealPly error
rodzic
06089a8e7c
commit
fdcbb19adf
|
@ -1419,7 +1419,8 @@ window.TraceKit = TraceKit;
|
||||||
|
|
||||||
var blackListedErrors = {
|
var blackListedErrors = {
|
||||||
'Error with empty message': {},
|
'Error with empty message': {},
|
||||||
'Script error.': {}
|
'Script error.': {},
|
||||||
|
'DealPly is not defined': { factor: 10e5 }
|
||||||
};
|
};
|
||||||
function processUnhandledException(stackTrace, options) {
|
function processUnhandledException(stackTrace, options) {
|
||||||
var stack = [],
|
var stack = [],
|
||||||
|
@ -1479,7 +1480,7 @@ window.TraceKit = TraceKit;
|
||||||
if (blackListedErrors.hasOwnProperty(message)) {
|
if (blackListedErrors.hasOwnProperty(message)) {
|
||||||
var count = (blackListedErrors[message].count || 0) + 1;
|
var count = (blackListedErrors[message].count || 0) + 1;
|
||||||
blackListedErrors[message].count = count;
|
blackListedErrors[message].count = count;
|
||||||
if (count % 10 !== 1) {
|
if (count % (blackListedErrors[message].factor || 10) !== 1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
finalCustomData.$blackList = blackListedErrors[message];
|
finalCustomData.$blackList = blackListedErrors[message];
|
||||||
|
|
Ładowanie…
Reference in New Issue