Skip to content

Commit c314bf6

Browse files
author
Gregor Gololicic
committed
filter out messages
1 parent 2b1b3a0 commit c314bf6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/index.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@ Sentry.init({
1818
/GraphQL/i, // filter out graphql errors
1919
/Failed to fetch/i // filter out failed to fetch network errors
2020
]
21-
21+
2222
// filter out blacklisted errors
2323
if (error && error.message) {
24-
for (const filter in ignoreErrors) {
24+
console.log("SENTRY ERR")
25+
for (const filter of ignoreErrors) {
26+
console.log("SENTRY FILTER", filter)
2527
if (error.message.match(filter)) {
28+
console.log("SENTRY MATCH", filter)
2629
return null
2730
}
2831
}

0 commit comments

Comments
 (0)