Skip to content

Commit

Permalink
Enable trace logging for the Olm Account
Browse files Browse the repository at this point in the history
This should help us to track down UTD sources, it ensures that we log
the state of a Olm session when we try to decrypt an `m.olm.*` to-device
message.
  • Loading branch information
poljar committed Feb 6, 2024
1 parent a241425 commit ecbf1d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ElementX/Sources/Other/Logging/RustTracing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ struct TracingConfiguration {
case hyper, matrix_sdk_ffi, matrix_sdk_crypto

case matrix_sdk_client = "matrix_sdk::client"
case matrix_sdk_crypto_account = "matrix_sdk_crypto::olm::account"
case matrix_sdk_oidc = "matrix_sdk::oidc"
case matrix_sdk_http_client = "matrix_sdk::http_client"
case matrix_sdk_sliding_sync = "matrix_sdk::sliding_sync"
Expand All @@ -89,6 +90,7 @@ struct TracingConfiguration {
.matrix_sdk_ffi: .info,
.matrix_sdk_client: .trace,
.matrix_sdk_crypto: .debug,
.matrix_sdk_crypto_account: .trace,
.matrix_sdk_oidc: .trace,
.matrix_sdk_http_client: .debug,
.matrix_sdk_sliding_sync: .info,
Expand Down Expand Up @@ -116,6 +118,7 @@ struct TracingConfiguration {
.matrix_sdk_oidc,
.matrix_sdk_client,
.matrix_sdk_crypto,
.matrix_sdk_crypto_account,
.matrix_sdk_http_client,
.matrix_sdk_base_read_receipts]
if ignoredTargets.contains(target) {
Expand Down

0 comments on commit ecbf1d9

Please sign in to comment.