mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Setup tracing with a typed configuration.
This commit is contained in:
@@ -86,13 +86,10 @@ class NSELogger {
|
||||
configuration.subLogName = "nse"
|
||||
|
||||
#if DEBUG
|
||||
// This exposes the full Rust side tracing subscriber filter for more flexibility.
|
||||
// We can filter by level, crate and even file. See more details here:
|
||||
// https://docs.rs/tracing-subscriber/0.2.7/tracing_subscriber/filter/struct.EnvFilter.html#examples
|
||||
setupTracing(filter: "warn,hyper=warn,sled=warn,matrix_sdk_sled=warn")
|
||||
setupTracing(configuration: .debug)
|
||||
configuration.logLevel = .debug
|
||||
#else
|
||||
setupTracing(filter: "info,hyper=warn,sled=warn,matrix_sdk_sled=warn")
|
||||
setupTracing(configuration: .release)
|
||||
configuration.logLevel = .info
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user