Improve logging around socket messages.

pull/1/head
Matthew Chen 7 years ago
parent 53dac3282f
commit 3fe63726e0

@ -92,7 +92,7 @@ NSString *const kNSNotification_SocketManagerStateDidChange = @"kNSNotification_
self.hasCompleted = YES;
}
DDLogInfo(@"%@ %s didSucceedWithResponseObject: %zd, %@", self.logTag, __PRETTY_FUNCTION__, statusCode, error);
DDLogError(@"%@ %s", self.logTag, __PRETTY_FUNCTION__);
OWSAssert(self.success);
OWSAssert(self.failure);
@ -126,7 +126,7 @@ NSString *const kNSNotification_SocketManagerStateDidChange = @"kNSNotification_
self.hasCompleted = YES;
}
DDLogError(@"%@ %s didFailWithStatusCode: %zd, %@", self.logTag, __PRETTY_FUNCTION__, statusCode, error);
DDLogError(@"%@ %s: %zd, %@", self.logTag, __PRETTY_FUNCTION__, statusCode, error);
OWSAssert(self.success);
OWSAssert(self.failure);

Loading…
Cancel
Save