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
@@ -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]
}
}