Add temporary verbose logging around message creation.

This commit is contained in:
Matthew Chen 2018-05-29 11:15:15 -04:00
parent c4fa6a1bb5
commit 7200a8dc4d
3 changed files with 24 additions and 0 deletions

View File

@ -63,6 +63,14 @@ NS_ASSUME_NONNULL_BEGIN
_sourceDeviceId = sourceDeviceId;
_read = NO;
DDLogInfo(@"%@ --- TSIncomingMessage init: %@, %llu, %llu, %llu",
self.logTag,
self.debugDescription,
self.timestamp,
self.timestampForSorting,
[NSDate ows_millisecondTimeStamp]);
[DDLog flushLog];
return self;
}

View File

@ -145,6 +145,14 @@ NS_ASSUME_NONNULL_BEGIN
TSThread *fetchedThread = [TSThread fetchObjectWithUniqueID:self.uniqueThreadId transaction:transaction];
[fetchedThread updateWithLastMessage:self transaction:transaction];
DDLogInfo(@"%@ --- saveWithTransaction: %@, %llu, %llu, %llu",
self.logTag,
self.debugDescription,
self.timestamp,
self.timestampForSorting,
[NSDate ows_millisecondTimeStamp]);
[DDLog flushLog];
}
- (void)removeWithTransaction:(YapDatabaseReadWriteTransaction *)transaction

View File

@ -350,6 +350,14 @@ NSString *NSStringForOutgoingMessageRecipientState(OWSOutgoingMessageRecipientSt
}
self.recipientStateMap = [recipientStateMap copy];
DDLogInfo(@"%@ --- TSOutgoingMessage init: %@, %llu, %llu, %llu",
self.logTag,
self.debugDescription,
self.timestamp,
self.timestampForSorting,
[NSDate ows_millisecondTimeStamp]);
[DDLog flushLog];
return self;
}