Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Disabling automatic capture of fatal errors? #516

Closed
mshafrir-stripe opened this issue Aug 13, 2020 · 2 comments
Closed

Disabling automatic capture of fatal errors? #516

mshafrir-stripe opened this issue Aug 13, 2020 · 2 comments
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@mshafrir-stripe
Copy link

Does the Sentry Android SDK have a mechanism to disable automatic capture of fatal errors?

@marandaneto
Copy link
Contributor

what do you mean by automatic capture of fatal errors? if you say the Uncaught Exception handler, so yes:

https://github.com/getsentry/sentry-android/blob/master/sentry-samples/sentry-samples-android/src/main/AndroidManifest.xml#L74-L75

or thru options.

/**
* Enable or disable the default UncaughtExceptionHandlerIntegration.
*
* @param enableUncaughtExceptionHandler true if enabled or false otherwise.
*/
public void setEnableUncaughtExceptionHandler(boolean enableUncaughtExceptionHandler) {
this.enableUncaughtExceptionHandler = enableUncaughtExceptionHandler;
}

@marandaneto marandaneto added documentation Improvements or additions to documentation question Further information is requested labels Aug 13, 2020
@mshafrir-stripe
Copy link
Author

@marandaneto thanks, this is exactly what I was looking for.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants