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

Make error reports more customizable #110

Merged
merged 12 commits into from
Jul 22, 2016

Conversation

kattrali
Copy link
Contributor

@kattrali kattrali commented Jul 7, 2016

This changeset modifies the previously-internal class BugsnagCrashReport to be modifiable before sending reports to Bugsnag.

Changes

  • Expose BugsnagCrashReport and move report data into writable properties
  • Add notify:block: selector for customizing a crash report, deprecating notify:metaData: and notify:metaData:severity:
  • Add notifyError: and notifyError:block: selectors for notifying about an NSError instance
  • Send error reports asynchronously

Fixes #109

Fixes #103

kattrali added 10 commits June 29, 2016 13:07
Deprecate notify:withData: and notify:withData:atSeverity:
Errors have a default severity of warning and automatically attach the 
error description, failure reason (if any), domain, and code as metadata
This reduces reuse of the metaData dictionary, which may be overridden
itself.

Makes tests pass
These callbacks are invoked before the reports are sent, rather than at
crash time, like other Bugsnag libraries. Changing the name better
reflects this behavior.
@kattrali kattrali modified the milestone: 5.4.0 Jul 22, 2016
@kattrali kattrali merged commit 7e93115 into master Jul 22, 2016
@kattrali kattrali deleted the kattrali/make-error-reports-editable branch July 22, 2016 23:29
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.

1 participant