From 219aa156446e2465783cc018510cd9a18e643bb7 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Mon, 4 Aug 2025 10:47:46 -0500 Subject: use a string for diagnostic level (match other enums) --- src/slskd/Core/Options.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/slskd/Core/Options.cs') diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 1fed70f5..4d4c1e68 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -36,10 +36,10 @@ namespace slskd using slskd.Relay; using slskd.Shares; using slskd.Validation; - using Soulseek.Diagnostics; using Utility.CommandLine; using Utility.EnvironmentVariables; using YamlDotNet.Serialization; + using SoulseekDiagnostics = Soulseek.Diagnostics; /// /// Disambiguates options derived at startup from options that may update at run time. @@ -1572,8 +1572,9 @@ namespace slskd [Argument(default, "slsk-diag-level")] [EnvironmentVariable("SLSK_DIAG_LEVEL")] [Description("minimum diagnostic level (None, Warning, Info, Debug)")] + [Enum(typeof(SoulseekDiagnostics.DiagnosticLevel))] [RequiresRestart] - public DiagnosticLevel DiagnosticLevel { get; init; } = DiagnosticLevel.Info; + public string DiagnosticLevel { get; init; } = SoulseekDiagnostics.DiagnosticLevel.Info.ToString().ToLowerInvariant(); /// /// Gets options for the distributed network. -- cgit v1.2.3