1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-07-05 18:48:31 +00:00

v4.0.0-rc13.12

* Changed: Tweak automatic error reporting settings to catch more errors.
This commit is contained in:
SirStendec 2018-12-04 04:20:00 -05:00
parent d6504757b3
commit cc24c86068
2 changed files with 4 additions and 11 deletions

View file

@ -15,7 +15,6 @@ import SocketClient from './socket';
import Site from 'site'; import Site from 'site';
import Vue from 'utilities/vue'; import Vue from 'utilities/vue';
import { timeout } from './utilities/object'; import { timeout } from './utilities/object';
import { strict } from 'assert';
class FrankerFaceZ extends Module { class FrankerFaceZ extends Module {
constructor() { constructor() {
@ -150,7 +149,7 @@ ${typeof x[1] === 'string' ? x[1] : JSON.stringify(x[1], null, 4)}`
FrankerFaceZ.Logger = Logger; FrankerFaceZ.Logger = Logger;
const VER = FrankerFaceZ.version_info = { const VER = FrankerFaceZ.version_info = {
major: 4, minor: 0, revision: 0, extra: '-rc13.11', major: 4, minor: 0, revision: 0, extra: '-rc13.12',
commit: __git_commit__, commit: __git_commit__,
build: __webpack_hash__, build: __webpack_hash__,
toString: () => toString: () =>

View file

@ -169,10 +169,6 @@ export default class RavenLogger extends Module {
return false; 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]; const exc = data.exception && data.exception.values[0];
// We don't want any of Sentry's junk. // We don't want any of Sentry's junk.
@ -212,15 +208,13 @@ export default class RavenLogger extends Module {
return false; return false;
} }
if ( DEBUG )
return false;
return true; return true;
} }
}; };
if ( ! DEBUG )
raven_config.whitelistUrls = [
/cdn\.frankerfacez\.com/
];
Raven.config(SENTRY_ID, raven_config).install(); Raven.config(SENTRY_ID, raven_config).install();
} }