Improve logging around SSE exceptions.

This commit is contained in:
Greyson Parrelli
2023-08-17 10:23:03 -04:00
parent 29804e0a2b
commit 1fd9609810

View File

@@ -2410,7 +2410,12 @@ open class RecipientTable(context: Context, databaseHelper: SignalDatabase) : Da
.newBuilder()
.setE164(operation.e164 ?: "")
.build()
SignalDatabase.messages.insertSessionSwitchoverEvent(operation.recipientId, threadId, event)
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}")
throw e
}
}
}
}