diff --git a/Source/BugsnagSessionTrackingApiClient.m b/Source/BugsnagSessionTrackingApiClient.m index ec2ffb463..994b94db2 100644 --- a/Source/BugsnagSessionTrackingApiClient.m +++ b/Source/BugsnagSessionTrackingApiClient.m @@ -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];