TF-4269 Apply PR review: breadcrumbs, log error details, and code cleanup for NSE Sentry integration
- Replace capture(message:) with addBreadcrumb(level: .warning) in NotificationService for non-error diagnostic checkpoints - Add addBreadcrumb method to SentryManager with category/level support - Include error details in KeychainController SentryConfig decode failure log - Split combined guard into two separate guards to distinguish nil state vs unchanged state - Remove dead do-catch block in onComplete closure; use errors.forEach to capture real errors - Translate Vietnamese doc comment to English in SentryManager
This commit is contained in:
@@ -71,7 +71,7 @@ extension KeychainController {
|
||||
}
|
||||
return try JSONDecoder().decode(SentryConfig.self, from: configData)
|
||||
} catch {
|
||||
TwakeLogger.shared.log(message: "SentryConfig could not be decoded from Keychain")
|
||||
TwakeLogger.shared.log(message: "SentryConfig could not be decoded from Keychain: \(error)")
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user