log error on failure

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

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

Loading…
Cancel
Save