-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
How to ignore errors #117
Comments
Should work like this: Sentry.init({
dsn: "__DSN__",
// An array of strings or regexps that'll be used to ignore specific errors based on their type/message
ignoreErrors: [/Error_\d\d/, "RangeError"],
}); |
Hmm, this is what I'm using - const { init, captureException } = require('@sentry/electron');
const isDev = require('electron-is-dev');
const sentryInit = () => {
if (!isDev) {
init({
dsn: 'DSNHERE',
ignoreErrors: ['Network failed']
});
}
};
module.exports = {
sentryInit,
captureException
}; Let me see if this works. Also, is there any way to disable the complete console logs here like I don't want to send the console log to the Sentry. |
|
We have just released v3.0.0 of the SDK which includes a lot of changes and improvements since this issue was opened. If you can still reproduce this with v3, please open a new issue and I'll look into it. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm having a hard time ignoring the errors. Can somebody tell me the correct configuration to ignore particular error cc @HazAT.
The text was updated successfully, but these errors were encountered: