Skip to content

Commit

Permalink
Set crash severity to “error”
Browse files Browse the repository at this point in the history
Use error as the default severity, which is overridden by manual error
notifications
  • Loading branch information
kattrali committed Feb 2, 2016
1 parent 0ea73f8 commit f05c0af
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/Bugsnag/BugsnagNotifier.m
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ - (void) start {

[KSCrash sharedInstance].onCrash = &BSSerializeDataCrashHandler;

[self resetDefaultSeverity];
if (configuration.autoNotify) {
[[KSCrash sharedInstance] install];
}
Expand Down Expand Up @@ -159,6 +160,11 @@ - (void)notify:(NSException *)exception withData:(NSDictionary *)metaData atSeve
[[self state] clearTab:BSTabCrash];

[self performSelectorInBackground:@selector(sendPendingReports) withObject:nil];
[self resetDefaultSeverity];
}

- (void) resetDefaultSeverity {
[self.state addAttribute:BSAttributeSeverity withValue:BugsnagSeverityError toTabWithName:BSTabCrash];
}

- (void) serializeBreadcrumbs {
Expand Down

0 comments on commit f05c0af

Please sign in to comment.