Skip to content

Commit

Permalink
Improve logging around SSE exceptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Aug 17, 2023
1 parent 29804e0 commit 1fd9609
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
}
Expand Down

0 comments on commit 1fd9609

Please sign in to comment.