Add logging to help debug forced logout issues (#3208)

* Add logging to help debug forced logout issues

* Use tags instead of manually adding the values to the logs.

- Also add extension functions to easily get anonymized tokens from `Session`/`SessionData`.

* Make sure only 1 operation related to token persistence can run at the same time
This commit is contained in:
Jorge Martin Espinosa 2024-07-18 15:16:20 +02:00 committed by GitHub
parent bf3bdbf6b0
commit aedbce8e8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 74 additions and 16 deletions

View file

@ -30,6 +30,8 @@ data class TracingFilterConfiguration(
Target.MATRIX_SDK_SLIDING_SYNC to LogLevel.INFO,
Target.MATRIX_SDK_BASE_SLIDING_SYNC to LogLevel.INFO,
Target.MATRIX_SDK_UI_TIMELINE to LogLevel.INFO,
// To debug OIDC logouts
Target.MATRIX_SDK_OIDC to LogLevel.TRACE,
)
fun getLogLevel(target: Target): LogLevel {