Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Log response data in case of error
Browse files Browse the repository at this point in the history
  • Loading branch information
lumaxis committed Feb 25, 2015
1 parent 50e207c commit d719bf8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Classes/MSAISender.m
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ - (void)sendRequest:(NSURLRequest *)request {
[strongSelf sendSavedData];
} else {
MSAILog(@"Sending MSAIAppInsights data failed");
MSAILog(@"Response data:\n%@", [NSJSONSerialization JSONObjectWithData:responseData options:0 error:nil]);
[MSAIPersistence persistAfterErrorWithBundle:weakSelf.currentBundle];
strongSelf.currentBundle = nil;
strongSelf.sending = NO;
Expand Down

0 comments on commit d719bf8

Please sign in to comment.