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:
dab246
2026-04-22 09:00:56 +07:00
parent f335871513
commit 330c8cbaf5
4 changed files with 49 additions and 34 deletions
@@ -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
}
}