Move tracing configuration to the rust side.

This commit is contained in:
Stefan Ceriu
2025-01-09 13:23:14 +02:00
committed by Stefan Ceriu
parent 2671d90bc1
commit 57b85d2650
14 changed files with 100 additions and 244 deletions
@@ -41,7 +41,7 @@ enum DeveloperOptionsScreenViewAction {
}
protocol DeveloperOptionsProtocol: AnyObject {
var logLevel: TracingConfiguration.LogLevel { get set }
var logLevel: LogLevel { get set }
var slidingSyncDiscovery: AppSettings.SlidingSyncDiscovery { get set }
var publicSearchEnabled: Bool { get set }
var hideUnreadMessagesBadge: Bool { get set }
@@ -152,7 +152,7 @@ struct DeveloperOptionsScreen: View {
}
private struct LogLevelConfigurationView: View {
@Binding var logLevel: TracingConfiguration.LogLevel
@Binding var logLevel: LogLevel
var body: some View {
Picker(selection: $logLevel) {
@@ -166,7 +166,7 @@ private struct LogLevelConfigurationView: View {
}
/// Allows the picker to work with associated values
private var logLevels: [TracingConfiguration.LogLevel] {
private var logLevels: [LogLevel] {
[.error, .warn, .info, .debug, .trace]
}
}