aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-06-06 20:57:50 -0500
committerJP Dillingham <jp@dillingham.me>2022-06-06 20:57:50 -0500
commitbf5d35a75d676f9004dfe6da4d3ca8a2b532a4f6 (patch)
tree4023de300e09afd6fcc63368757448176b7c6aa9 /src
parent25033d9f61b442d974d4628d97d1c823e15c7769 (diff)
downloadslskd-bf5d35a75d676f9004dfe6da4d3ca8a2b532a4f6.tar.gz
add distributed logging flag
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Options.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/slskd/Options.cs b/src/slskd/Options.cs
index a8c3380c..041824de 100644
--- a/src/slskd/Options.cs
+++ b/src/slskd/Options.cs
@@ -924,6 +924,14 @@ namespace slskd
[Description("max number of distributed children")]
[Range(1, int.MaxValue)]
public int ChildLimit { get; init; } = 25;
+
+ /// <summary>
+ /// Gets a value indicating whether distributed network logging should be enabled.
+ /// </summary>
+ [Argument(default, "slsk-dnet-logging")]
+ [EnvironmentVariable("SLSK_DNET_LOGGING")]
+ [Description("enable distributed network logging")]
+ public bool Logging { get; init; } = false;
}
}