mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Keep some recipient logs longer.
This commit is contained in:
committed by
Nicholas Tinsley
parent
c93b4909f4
commit
d4db6c8912
@@ -2450,14 +2450,14 @@ open class RecipientTable(context: Context, databaseHelper: SignalDatabase) : Da
|
||||
try {
|
||||
SignalDatabase.messages.insertSessionSwitchoverEvent(operation.recipientId, threadId, event)
|
||||
} catch (e: Exception) {
|
||||
Log.e(TAG, "About to crash! Breadcrumbs: ${changeSet.breadCrumbs}, Operations: ${changeSet.operations}, ID: ${changeSet.id}")
|
||||
Log.e(TAG, "About to crash! Breadcrumbs: ${changeSet.breadCrumbs}, Operations: ${changeSet.operations}, ID: ${changeSet.id}", true)
|
||||
|
||||
val allPnis: Set<PNI> = getAllPnis()
|
||||
val pnisWithSessions: Set<PNI> = sessions.findAllThatHaveAnySession(allPnis)
|
||||
Log.e(TAG, "We know of ${allPnis.size} PNIs, and there are sessions with ${pnisWithSessions.size} of them.")
|
||||
Log.e(TAG, "We know of ${allPnis.size} PNIs, and there are sessions with ${pnisWithSessions.size} of them.", true)
|
||||
|
||||
val record = getRecord(operation.recipientId)
|
||||
Log.e(TAG, "ID: ${record.id}, E164: ${record.e164}, ACI: ${record.aci}, PNI: ${record.pni}, Registered: ${record.registered}")
|
||||
Log.e(TAG, "ID: ${record.id}, E164: ${record.e164}, ACI: ${record.aci}, PNI: ${record.pni}, Registered: ${record.registered}", true)
|
||||
|
||||
if (record.aci != null && record.aci == SignalStore.account().aci) {
|
||||
if (pnisWithSessions.contains(SignalStore.account().pni!!)) {
|
||||
|
||||
Reference in New Issue
Block a user