mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-07-25 20:18:31 +00:00
v4.0.0-rc13.12
* Changed: Tweak automatic error reporting settings to catch more errors.
This commit is contained in:
parent
d6504757b3
commit
cc24c86068
2 changed files with 4 additions and 11 deletions
12
src/raven.js
12
src/raven.js
|
@ -169,10 +169,6 @@ export default class RavenLogger extends Module {
|
|||
return false;
|
||||
}
|
||||
|
||||
// Don't send errors in debug mode.
|
||||
//if ( DEBUG && !(data.tags && data.tags.example) )
|
||||
// return false;
|
||||
|
||||
const exc = data.exception && data.exception.values[0];
|
||||
|
||||
// We don't want any of Sentry's junk.
|
||||
|
@ -212,15 +208,13 @@ export default class RavenLogger extends Module {
|
|||
return false;
|
||||
}
|
||||
|
||||
if ( DEBUG )
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
if ( ! DEBUG )
|
||||
raven_config.whitelistUrls = [
|
||||
/cdn\.frankerfacez\.com/
|
||||
];
|
||||
|
||||
Raven.config(SENTRY_ID, raven_config).install();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue