mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Move tracing configuration to the rust side.
This commit is contained in:
committed by
Stefan Ceriu
parent
2671d90bc1
commit
57b85d2650
+1
-1
@@ -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 }
|
||||
|
||||
+2
-2
@@ -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]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user