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

More event filtering for Sentry error reporting.

This commit is contained in:
SirStendec 2018-04-11 17:49:31 -04:00
parent d7a07a5612
commit e773600a3e
6 changed files with 34 additions and 4 deletions

View file

@ -1,3 +1,9 @@
<div class="list-header">4.0.0-beta2.9<span>@665575cf426293ec11da</span> <time datetime="2018-04-11">(2018-04-11)</time></div>
<ul class="chat-menu-content menu-side-padding">
<li>Changed: Allow clicking on a rich chat embed even if it fails to load.</li>
<li>Fixed: Clean up more errors for Sentry logging.</li>
</ul>
<div class="list-header">4.0.0-beta2.6<span>@b85fa005ec1f3929cdd8</span> <time datetime="2018-04-11">(2018-04-11)</time></div> <div class="list-header">4.0.0-beta2.6<span>@b85fa005ec1f3929cdd8</span> <time datetime="2018-04-11">(2018-04-11)</time></div>
<ul class="chat-menu-content menu-side-padding"> <ul class="chat-menu-content menu-side-padding">
<li>Changed: Filter a bunch of errors out from Sentry logging.</li> <li>Changed: Filter a bunch of errors out from Sentry logging.</li>

10
src/experiments.json Normal file
View file

@ -0,0 +1,10 @@
{
"api_load": {
"name": "New API Stress Testing",
"description": "Send duplicate requests to the new API server for load testing.",
"groups": [
{"value": true, "weight": 0},
{"value": false, "weight": 100}
]
}
}

View file

@ -30,7 +30,7 @@ class FrankerFaceZ extends Module {
// Error Reporting and Logging // Error Reporting and Logging
// ======================================================================== // ========================================================================
//if ( ! DEBUG ) if ( ! DEBUG )
this.inject('raven', RavenLogger); this.inject('raven', RavenLogger);
this.log = new Logger(null, null, null, this.raven); this.log = new Logger(null, null, null, this.raven);
@ -100,7 +100,7 @@ class FrankerFaceZ extends Module {
FrankerFaceZ.Logger = Logger; FrankerFaceZ.Logger = Logger;
const VER = FrankerFaceZ.version_info = { const VER = FrankerFaceZ.version_info = {
major: 4, minor: 0, revision: 0, extra: '-beta2.7', major: 4, minor: 0, revision: 0, extra: '-beta2.9',
build: __webpack_hash__, build: __webpack_hash__,
toString: () => toString: () =>
`${VER.major}.${VER.minor}.${VER.revision}${VER.extra || ''}${DEBUG ? '-dev' : ''}` `${VER.major}.${VER.minor}.${VER.revision}${VER.extra || ''}${DEBUG ? '-dev' : ''}`

View file

@ -31,6 +31,8 @@ export const Clips = {
return; return;
return { return {
url: token.url,
getData: async () => { getData: async () => {
const result = await apollo.client.query({ const result = await apollo.client.query({
query: GET_CLIP, query: GET_CLIP,
@ -39,6 +41,9 @@ export const Clips = {
} }
}); });
if ( ! result || ! result.data || ! result.data.clip )
return null;
const clip = result.data.clip, const clip = result.data.clip,
user = clip.broadcaster.displayName, user = clip.broadcaster.displayName,
game = clip.game, game = clip.game,

View file

@ -48,8 +48,16 @@ export default class RichContent extends Module {
data = await data; data = await data;
} }
if ( ! data )
data = {
error: true,
title: t.i18n.t('card.error', 'An error occured.'),
desc_1: t.i18n.t('card.empty', 'No data was returned.')
}
this.setState(Object.assign({ this.setState(Object.assign({
loaded: true loaded: true,
url: this.props.url
}, data)); }, data));
} catch(err) { } catch(err) {
@ -59,6 +67,7 @@ export default class RichContent extends Module {
this.setState({ this.setState({
loaded: true, loaded: true,
error: true, error: true,
url: this.props.url,
title: t.i18n.t('card.error', 'An error occured.'), title: t.i18n.t('card.error', 'An error occured.'),
desc_1: String(err) desc_1: String(err)
}); });

View file

@ -117,7 +117,7 @@ export default class Apollo extends Module {
next: result => { next: result => {
if ( result.errors ) { if ( result.errors ) {
const name = operation.operationName; const name = operation.operationName;
if ( name.includes('FFZ') || has(this.modifiers, name) || has(this.post_modifiers, name) ) { if ( name && (name.includes('FFZ') || has(this.modifiers, name) || has(this.post_modifiers, name)) ) {
for(const err of result.errors) { for(const err of result.errors) {
if ( skip_error(err) ) if ( skip_error(err) )
continue; continue;