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

[PLAT-7412] Improve logging around debugger being attached #1210

Merged
merged 1 commit into from Oct 15, 2021

Conversation

nickdowell
Copy link
Contributor

@nickdowell nickdowell commented Oct 15, 2021

Goal

Log a less intimidating message when Bugsnag is started with a debugger attached.

The current message [Bugsnag] [ERROR] Failed to install crash handler. No exceptions will be reported! is a little alarming and indicates that there has been an error when this is actually expected behaviour when a debugger is attached.

Changeset

If a debugger is attached and autoDetectErrors was enabled, a less alarming message is now shown:

[Bugsnag] [INFO] Unhandled errors will not be detected because a debugger is attached

bsg_kscrashsentry_installWithContext() is now only called if crash handlers should be installed, to prevent unnecessary warnings being logged about a debugger being attached.

Removed the exclamation mark from the error message for failure to install crash handlers.

Testing

Tested with example app.

@github-actions
Copy link

Infer: No issues found 🎉

OCLint: No issues found 🎉

Bugsnag.framework binary size did not change - 1,255,032 bytes

Generated by 🚫 Danger

@nickdowell nickdowell merged commit a794f5e into next Oct 15, 2021
@nickdowell nickdowell deleted the nickdowell/debugger-attached-logging branch October 15, 2021 08:42
@nickdowell nickdowell mentioned this pull request Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants