Skip to content

Commit

Permalink
feat: remove leaveBreadcrumbWithBlock from public api
Browse files Browse the repository at this point in the history
  • Loading branch information
fractalwrench committed Mar 19, 2020
1 parent 7f86293 commit cac1d11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
9 changes: 0 additions & 9 deletions Source/Bugsnag.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,6 @@ static NSString *_Nonnull const BugsnagSeverityInfo = @"info";
*/
+ (void)leaveBreadcrumbWithMessage:(NSString *_Nonnull)message;

/**
* Leave a "breadcrumb" log message with additional information about the
* environment at the time the breadcrumb was captured.
*
* @param block configuration block
*/
+ (void)leaveBreadcrumbWithBlock:
(void (^_Nonnull)(BugsnagBreadcrumb *_Nonnull))block;

/**
* Leave a "breadcrumb" log message each time a notification with a provided
* name is received by the application
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,9 @@ class DiscardedBreadcrumbTypeScenario : Scenario {
}

override func run() {
Bugsnag.leaveBreadcrumb { crumb in
crumb.type = .log
crumb.message = "Noisy event"
}
Bugsnag.leaveBreadcrumb { crumb in
crumb.type = .process
crumb.message = "Important event"
}
Bugsnag.leaveBreadcrumb("Noisy event", metadata: nil, type: .log)
Bugsnag.leaveBreadcrumb("Important event", metadata: nil, type: .process)

Bugsnag.notifyError(MagicError(domain: "com.example",
code: 43,
userInfo: [NSLocalizedDescriptionKey: "incoming!"]))
Expand Down

0 comments on commit cac1d11

Please sign in to comment.