aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-08-24 18:04:46 -0500
committerJP Dillingham <jp@dillingham.me>2026-08-24 18:04:46 -0500
commit556b588197f31ed98c0e3dec7a9ceeddf8eb10e3 (patch)
tree47578ecfae0dda3de7a05480d4fb4b3f887dcc02
parentf3dca154f98a9f37c9323b2e276e4f6d5540850c (diff)
downloadslskd-556b588197f31ed98c0e3dec7a9ceeddf8eb10e3.tar.gz
enable disk logging by default
-rw-r--r--config/slskd.example.yml2
-rw-r--r--src/slskd/Core/Options.cs8
2 files changed, 5 insertions, 5 deletions
diff --git a/config/slskd.example.yml b/config/slskd.example.yml
index af2871e2..442d0ce3 100644
--- a/config/slskd.example.yml
+++ b/config/slskd.example.yml
@@ -195,7 +195,7 @@
# circuit_breaker: 500 # maximum number of pending search requests
# response_file_limit: 500 # maximum number of files to return in a single search response
# logger:
-# disk: false
+# disk: true
# no_color: false
# loki: ~
# metrics:
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs
index d1062a2c..84dafe29 100644
--- a/src/slskd/Core/Options.cs
+++ b/src/slskd/Core/Options.cs
@@ -1458,11 +1458,11 @@ namespace slskd
/// <summary>
/// Gets a value indicating whether to write logs to disk.
/// </summary>
- [Argument(default, "disk-logger")]
- [EnvironmentVariable("DISK_LOGGER")]
- [Description("enable logging to disk")]
+ [Argument(default, "no-disk-logger")]
+ [EnvironmentVariable("NO_DISK_LOGGER")]
+ [Description("disable logging to disk")]
[RequiresRestart]
- public bool Disk { get; init; } = false;
+ public bool Disk { get; init; } = true;
/// <summary>
/// Gets a value indicating whether to suppress colorization of console logs.