Log timestamp of sent messages

This is really helpful when cross referencing debug logs with the
recipient. (We already log timestamps on the receiving side).

// FREEBIE
This commit is contained in:
Michael Kirk 2017-10-12 11:06:18 -04:00
parent af4a4c436a
commit b2efb722d2

View file

@ -843,7 +843,11 @@ NSString *const OWSMessageSenderRateLimitedException = @"RateLimitedException";
success:(void (^)())successHandler
failure:(RetryableFailureHandler)failureHandler
{
DDLogDebug(@"%@ sending message to service: %@", self.tag, message.debugDescription);
DDLogInfo(@"%@ attempting to send message: %@, timestamp: %llu, recipient: %@",
self.tag,
message.class,
message.timestamp,
recipient.uniqueId);
AssertIsOnSendingQueue();
if ([TSPreKeyManager isAppLockedDueToPreKeyUpdateFailures]) {