mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Add logging around database transactions and group recipient creation.
This commit is contained in:
@@ -607,6 +607,8 @@ open class RecipientTable(context: Context, databaseHelper: SignalDatabase) : Da
|
||||
Log.w(TAG, "Failed to update newly-created record for $recipientId")
|
||||
}
|
||||
|
||||
Log.i(TAG, "Group $groupId was newly-inserted as $recipientId")
|
||||
|
||||
return recipientId
|
||||
}
|
||||
}
|
||||
|
||||
@@ -393,6 +393,7 @@ class IncomingMessageObserver(private val context: Application) {
|
||||
GroupsV2ProcessingLock.acquireGroupProcessingLock().use {
|
||||
ReentrantSessionLock.INSTANCE.acquire().use {
|
||||
batch.forEach {
|
||||
Log.d(TAG, "Beginning database transaction...")
|
||||
SignalDatabase.runInTransaction {
|
||||
val followUpOperations: List<FollowUpOperation>? = processEnvelope(bufferedStore, it.envelope, it.serverDeliveredTimestamp)
|
||||
bufferedStore.flushToDisk()
|
||||
@@ -401,6 +402,7 @@ class IncomingMessageObserver(private val context: Application) {
|
||||
ApplicationDependencies.getJobManager().addAll(jobs)
|
||||
}
|
||||
}
|
||||
Log.d(TAG, "Ended database transaction.")
|
||||
signalWebSocket.sendAck(it)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user