better message receipt logging

// FREEBIE
This commit is contained in:
Michael Kirk 2017-05-30 13:04:10 -07:00
parent 01f2911462
commit ab378f79b4

View file

@ -263,7 +263,11 @@ NS_ASSUME_NONNULL_BEGIN
DDLogDebug(@"%@ handled secure message.", self.tag); DDLogDebug(@"%@ handled secure message.", self.tag);
if (error) { if (error) {
DDLogError( DDLogError(
@"%@ handling secure message failed with error: %@", self.tag, error); @"%@ handling secure message from address: %@.%d failed with error: %@",
self.tag,
envelope.source,
(unsigned int)envelope.sourceDevice,
error);
} }
completion(); completion();
}]; }];
@ -273,10 +277,14 @@ NS_ASSUME_NONNULL_BEGIN
case OWSSignalServiceProtosEnvelopeTypePrekeyBundle: { case OWSSignalServiceProtosEnvelopeTypePrekeyBundle: {
[self handlePreKeyBundleAsync:envelope [self handlePreKeyBundleAsync:envelope
completion:^(NSError *_Nullable error) { completion:^(NSError *_Nullable error) {
DDLogDebug(@"%@ handled pre-key bundle", self.tag); DDLogDebug(@"%@ handled pre-key whisper message", self.tag);
if (error) { if (error) {
DDLogError( DDLogError(@"%@ handling pre-key whisper message from address: %@.%d failed "
@"%@ handling pre-key bundle failed with error: %@", self.tag, error); @"with error: %@",
self.tag,
envelope.source,
(unsigned int)envelope.sourceDevice,
error);
} }
completion(); completion();
}]; }];