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-4706] Fix thread sending behaviour #1077

Merged
merged 1 commit into from
Apr 21, 2021

Conversation

nickdowell
Copy link
Contributor

@nickdowell nickdowell commented Apr 21, 2021

Goal

To stop threads being sent if the notifier has been configured not to via the sendThreads property.

Prior to this change, threads would contain a single object.

Changeset

-[BugsnagClient notify:] has been amended to send an empty threads array if threads should not be sent.

-[BugnagEvent initWithKSCrashData:] has been amended to send an empty threads array if a single thread was captured - this is what KSCrash does when if thread sending is disabled (so that the offending stacktrace is captured.)

Testing

Verified through E2E tests, and manually tested using example app.

@github-actions
Copy link

Infer: No issues found 🎉

OCLint: No issues found 🎉

Bugsnag.framework binary size decreased by 184 bytes from 1,124,896 to 1,124,712 🎉

Generated by 🚫 Danger

@nickdowell nickdowell force-pushed the nickdowell/fix-send-threads branch from 0b1a8e5 to 4ac28ab Compare April 21, 2021 14:08
@nickdowell nickdowell changed the title Fix thread sending behaviour [PLAT-4706] Fix thread sending behaviour Apr 21, 2021
@nickdowell nickdowell merged commit 06d4823 into next Apr 21, 2021
@nickdowell nickdowell deleted the nickdowell/fix-send-threads branch April 21, 2021 16:03
@kstenerud kstenerud mentioned this pull request Apr 28, 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.

2 participants