Skip to content

Commit

Permalink
docs: Log if API client is in an invalid state
Browse files Browse the repository at this point in the history
  • Loading branch information
kattrali committed Jul 16, 2018
1 parent fbd907b commit 7ed032b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Source/BugsnagSessionTrackingApiClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ - (NSOperation *)deliveryOperation {

- (void)deliverSessionsInStore:(BugsnagSessionFileStore *)store {
[self.sendQueue addOperationWithBlock:^{
if (!self.config.apiKey)
if (!self.config.apiKey) {
bsg_log_err(@"No API key set. Refusing to send sessions.");
return;
}

NSArray *fileIds = [store fileIds];

Expand Down

0 comments on commit 7ed032b

Please sign in to comment.