mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 08:03:50 +02:00
Log decryption error details as context in AnalyticsEvent
This commit is contained in:
@@ -45,9 +45,12 @@ import AnalyticsEvents
|
||||
let ts: TimeInterval = Date().timeIntervalSince1970
|
||||
/// Decryption failure reason.
|
||||
let reason: DecryptionFailureReason
|
||||
/// Additional context of failure
|
||||
let context: String
|
||||
|
||||
init(failedEventId: String, reason: DecryptionFailureReason) {
|
||||
init(failedEventId: String, reason: DecryptionFailureReason, context: String) {
|
||||
self.failedEventId = failedEventId
|
||||
self.reason = reason
|
||||
self.context = context
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user