Removed the extra debug logs for message sending

pull/751/head
Morgan Pretty 1 year ago
parent a532976333
commit b277056a62

@ -608,9 +608,7 @@ extension ConversationVC:
.fetchOne(db) .fetchOne(db)
).inserted(db) ).inserted(db)
guard let interactionId: Int64 = interaction.id else { guard let interactionId: Int64 = interaction.id else { return }
return
}
// Prepare any attachments // Prepare any attachments
try Attachment.prepare( try Attachment.prepare(

@ -421,7 +421,6 @@ public struct Interaction: Codable, Identifiable, Equatable, FetchableRecord, Mu
} }
public mutating func didInsert(_ inserted: InsertionSuccess) { public mutating func didInsert(_ inserted: InsertionSuccess) {
SNLog("[MessageSendDebugging] didInsert interaction for id: \(inserted.rowID)")
self.id = inserted.rowID self.id = inserted.rowID
} }
} }

@ -55,7 +55,6 @@ public enum MessageSendJob: JobExecutor {
// message was deleted before it even got sent) // message was deleted before it even got sent)
guard Storage.shared.read({ db in try Interaction.exists(db, id: interactionId) }) == true else { guard Storage.shared.read({ db in try Interaction.exists(db, id: interactionId) }) == true else {
SNLog("[MessageSendJob] Failing due to missing interaction") SNLog("[MessageSendJob] Failing due to missing interaction")
SNLog("[MessageSendDebugging] Failed with interactionId \(interactionId)")
failure(job, StorageError.objectNotFound, true) failure(job, StorageError.objectNotFound, true)
return return
} }

@ -69,7 +69,7 @@ extension MessageSender {
) )
return return
} }
SNLog("[MessageSendDebugging] Add send job for interactionId: \(interactionId)\n\(Thread.callStackSymbols)")
JobRunner.add( JobRunner.add(
db, db,
job: Job( job: Job(

@ -1073,7 +1073,7 @@ public final class MessageSender {
{ {
if let message = message as? VisibleMessage { message.syncTarget = publicKey } if let message = message as? VisibleMessage { message.syncTarget = publicKey }
if let message = message as? ExpirationTimerUpdate { message.syncTarget = publicKey } if let message = message as? ExpirationTimerUpdate { message.syncTarget = publicKey }
SNLog("[MessageSendDebugging] Send sync message for interactionId \(interactionId)")
JobRunner.add( JobRunner.add(
db, db,
job: Job( job: Job(

Loading…
Cancel
Save