aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-08-04 18:25:35 -0500
committerGitHub <noreply@github.com>2025-08-04 18:25:35 -0500
commitd9c5aa6df4a140c7b6e2a1dcd6499bcd3091d99e (patch)
tree3a68418b876a4f1dbed9c5aabedbd2644ce32277 /src/slskd/Core
parentbdd085700fa57cf8db0230139c8c639bf70d5ab9 (diff)
parent219aa156446e2465783cc018510cd9a18e643bb7 (diff)
downloadslskd-d9c5aa6df4a140c7b6e2a1dcd6499bcd3091d99e.tar.gz
Merge pull request #1411 from slskd/debug-config
Fix bug preventing proper change detection when updating options with an enum type
Diffstat (limited to 'src/slskd/Core')
-rw-r--r--src/slskd/Core/Options.cs5
1 files changed, 3 insertions, 2 deletions
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;
/// <summary>
/// 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();
/// <summary>
/// Gets options for the distributed network.