aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/Options.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2025-11-22 17:40:11 -0600
committerGitHub <noreply@github.com>2025-11-22 17:40:11 -0600
commit0b15b5881e7216937530e1f19adac24d371bbf72 (patch)
tree3a4847817be5f0173e124b01acba83ef35940400 /src/slskd/Core/Options.cs
parent4cbf823f928ef5b1445ca2d79684a71b69a05f43 (diff)
parent8b6a9a3108a20b280f2891e47d30ecb931d9a435 (diff)
downloadslskd-0b15b5881e7216937530e1f19adac24d371bbf72.tar.gz
Merge pull request #1538 from slskd/warnings
Add flag to enable logging of unobserved exceptions
Diffstat (limited to 'src/slskd/Core/Options.cs')
-rw-r--r--src/slskd/Core/Options.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index 61e2878c..ec94afcb 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -418,6 +418,15 @@ namespace slskd
public bool LogSQL { get; init; } = false;
/// <summary>
+ /// Gets a value indicating whether to log unobserved Exceptions.
+ /// </summary>
+ [Argument(default, "log-unobserved-exceptions")]
+ [EnvironmentVariable("LOG_UNOBSERVED_EXCEPTIONS")]
+ [Description("log unobserved exceptions (caution: verbose)")]
+ [RequiresRestart]
+ public bool LogUnobservedExceptions { get; init; } = false;
+
+ /// <summary>
/// Gets a value indicating whether the application should run in experimental mode.
/// </summary>
[Argument(default, "experimental")]