Skip to content

Commit

Permalink
Fix rust tracing.
Browse files Browse the repository at this point in the history
  • Loading branch information
pixlwave committed Jan 16, 2023
1 parent bcefe2c commit f3086e0
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ElementX/Sources/Other/Logging/RustTracing.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,11 @@ struct TracingConfiguration {
])

enum Target: String {
case hyper, sled, matrix_sdk_sled, matrix_sdk_ffi
case hyper, sled, matrix_sdk_sled, matrix_sdk_ffi, matrix_sdk_crypto
case matrix_sdk_http_client = "matrix_sdk::http_client"
case matrix_sdk_ffi_uniffi_api = "matrix_sdk_ffi::uniffi_api"
case matrix_sdk_sliding_sync = "matrix_sdk::sliding_sync"
case matrix_sdk_base_sliding_sync = "matrix_sdk_base::sliding_sync"
case matrix_sdk_crypto
case matrix_sdk_crypto_sync = "matrix_sdk_crypto::machine[receive_sync_changes]"
}

enum LogLevel: String { case error, warn, info, debug, trace }
Expand All @@ -52,8 +50,7 @@ struct TracingConfiguration {
.hyper: .warn,
.sled: .warn,
.matrix_sdk_sled: .warn,
.matrix_sdk_crypto: .debug,
.matrix_sdk_crypto_sync: .trace
.matrix_sdk_crypto: .debug
]

var filter: String {
Expand Down

0 comments on commit f3086e0

Please sign in to comment.