Skip to content

Commit

Permalink
add log message
Browse files Browse the repository at this point in the history
  • Loading branch information
philipphofmann committed Jan 29, 2024
1 parent 976c053 commit fc85826
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Sentry/SentrySystemEventBreadcrumbs.m
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ - (void)batteryStateChanged:(NSNotification *)notification
UIDevice *currentDevice = notification.object;
// The object of an NSNotification may be nil.
if (currentDevice == nil) {
SENTRY_LOG_DEBUG(
@"UIDevice of NSNotification was nil. Won't create battery changed breadcrumb.");
return;
}

Expand Down

0 comments on commit fc85826

Please sign in to comment.