aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Options.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-06-06 21:59:20 -0500
committerGitHub <noreply@github.com>2022-06-06 21:59:20 -0500
commit83391ed8a632aa362db837dd41ea7b945e829741 (patch)
treef4efddf9bc5ab93e3810e506295175e325f58ee0 /src/slskd/Options.cs
parent25033d9f61b442d974d4628d97d1c823e15c7769 (diff)
parent2fbdac00ccf67c6032552f8a3a387be55ca29323 (diff)
downloadslskd-83391ed8a632aa362db837dd41ea7b945e829741.tar.gz
Merge pull request #503 from slskd/distributed-logging
Allow distributed network logging to be disabled (and disable it by default)
Diffstat (limited to 'src/slskd/Options.cs')
-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;
}
}