Merge branch 'charlesmchen/debugLogging'

pull/1/head
Matthew Chen 8 years ago
commit f3d0cb49e0

@ -1251,7 +1251,7 @@ const CGFloat OWSMessageCellCornerRadius = 17;
OWSAssert(self.delegate); OWSAssert(self.delegate);
if (sender.state != UIGestureRecognizerStateRecognized) { if (sender.state != UIGestureRecognizerStateRecognized) {
DDLogInfo(@"%@ Ignoring tap on message: %@", self.logTag, self.viewItem.interaction.debugDescription); DDLogVerbose(@"%@ Ignoring tap on message: %@", self.logTag, self.viewItem.interaction.debugDescription);
return; return;
} }
@ -1277,7 +1277,7 @@ const CGFloat OWSMessageCellCornerRadius = 17;
OWSAssert(self.delegate); OWSAssert(self.delegate);
if (sender.state != UIGestureRecognizerStateRecognized) { if (sender.state != UIGestureRecognizerStateRecognized) {
DDLogInfo(@"%@ Ignoring tap on message: %@", self.logTag, self.viewItem.interaction.debugDescription); DDLogVerbose(@"%@ Ignoring tap on message: %@", self.logTag, self.viewItem.interaction.debugDescription);
return; return;
} }

@ -150,7 +150,8 @@ NSString *NSStringForOWSMessageCellType(OWSMessageCellType cellType)
{ {
switch (self.interaction.interactionType) { switch (self.interaction.interactionType) {
case OWSInteractionType_Unknown: case OWSInteractionType_Unknown:
OWSFail(@"%@ Unknown interaction type: %@", self.logTag, self.interaction.debugDescription); DDLogVerbose(@"%@ Unknown interaction type: %@", self.logTag, self.interaction.debugDescription);
OWSFail(@"%@ Unknown interaction type", self.logTag);
return ConversationViewLayoutAlignment_Center; return ConversationViewLayoutAlignment_Center;
case OWSInteractionType_IncomingMessage: case OWSInteractionType_IncomingMessage:
return ConversationViewLayoutAlignment_Incoming; return ConversationViewLayoutAlignment_Incoming;

Loading…
Cancel
Save