Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔊 capture console.error in sentry #384

Merged
merged 2 commits into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@
'data:',
'*',
],
'frame-src': [

Check warning on line 77 in nuxt.config.js

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 16)

There should be no linebreak after '['
'verify.walletconnect.com',
],

Check warning on line 79 in nuxt.config.js

View workflow job for this annotation

GitHub Actions / ci (ubuntu-latest, 16)

There should be no linebreak before ']'
'style-src': [
"'self'",
"'unsafe-inline'",
Expand Down Expand Up @@ -150,6 +150,7 @@
clientIntegrations: {
/* default integrations will still be added due to deep-merge */
ReportingObserver: false, // reporting is very noisy on CSP violation.
CaptureConsole: { levels: ['error'] },
},
},
sitemap: {
Expand Down
6 changes: 4 additions & 2 deletions pages/view/_iscnId.vue
Original file line number Diff line number Diff line change
Expand Up @@ -855,8 +855,10 @@ export default class ViewIscnIdPage extends Vue {
this.isPreminted = !!data.classId
} catch (err) {
this.isPreminted = false
// eslint-disable-next-line no-console
console.error(err)
if ((err as any).response?.status !== 404) {
// eslint-disable-next-line no-console
console.error(err);
}
}
}
}
Expand Down
Loading