log error on failure

// FREEBIE
pull/1/head
Michael Kirk 9 years ago
parent d782904d15
commit 3be70e9719

@ -938,10 +938,7 @@ NSString *const OWSMessageSenderRateLimitedException = @"RateLimitedException";
}); });
} }
failure:^(NSURLSessionDataTask *task, NSError *error) { failure:^(NSURLSessionDataTask *task, NSError *error) {
DDLogInfo(@"%@ sending to recipient: %@, failed with error: %@", DDLogInfo(@"%@ sending to recipient: %@, failed with error: %@", self.tag, recipient.uniqueId, error);
self.tag,
recipient.uniqueId,
message.debugDescription);
[DDLog flushLog]; [DDLog flushLog];
NSHTTPURLResponse *response = (NSHTTPURLResponse *)task.response; NSHTTPURLResponse *response = (NSHTTPURLResponse *)task.response;

Loading…
Cancel
Save