mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Logging tweaks: keep default log levels for common and hyper no matter what the feature flag says
This commit is contained in:
committed by
Stefan Ceriu
parent
0893f3926b
commit
33a53a2971
@@ -39,6 +39,11 @@ struct TracingConfiguration {
|
||||
/// - Returns: a custom tracing configuration
|
||||
static func custom(logLevel: LogLevel) -> TracingConfiguration {
|
||||
let overrides = targets.keys.reduce(into: [Target: LogLevel]()) { partialResult, target in
|
||||
// Keep the defaults here
|
||||
if target == .common || target == .hyper {
|
||||
return
|
||||
}
|
||||
|
||||
partialResult[target] = logLevel
|
||||
}
|
||||
|
||||
@@ -50,6 +55,8 @@ struct TracingConfiguration {
|
||||
enum Target: String {
|
||||
case common = ""
|
||||
|
||||
case elementx
|
||||
|
||||
case hyper, matrix_sdk_ffi, matrix_sdk_crypto
|
||||
|
||||
case matrix_sdk_http_client = "matrix_sdk::http_client"
|
||||
@@ -61,7 +68,8 @@ struct TracingConfiguration {
|
||||
|
||||
static let targets: OrderedDictionary<Target, LogLevel> = [
|
||||
.common: .info,
|
||||
.hyper: .info,
|
||||
.elementx: .info,
|
||||
.hyper: .warn,
|
||||
.matrix_sdk_crypto: .info,
|
||||
.matrix_sdk_http_client: .info,
|
||||
.matrix_sdk_sliding_sync: .info,
|
||||
|
||||
Reference in New Issue
Block a user