Merge branch 'mkirk/log-error-on-send-failure'

pull/1/head
Michael Kirk 9 years ago
commit 12c45b8a47

@ -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