diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-08-24 18:04:46 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-08-24 21:59:31 -0500 |
| commit | 000ebf6e9a34fc09d7f44978e8c5c7b8dfd56d9d (patch) | |
| tree | ad60b559cc158fbf35881add90958435c7c6de4b | |
| parent | 87d7578771a39f61399870db3f833565d6fd2f05 (diff) | |
| download | slskd-000ebf6e9a34fc09d7f44978e8c5c7b8dfd56d9d.tar.gz | |
enable disk logging by default
| -rw-r--r-- | config/slskd.example.yml | 2 | ||||
| -rw-r--r-- | src/slskd/Core/Options.cs | 8 |
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 2f105963..3499e564 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. |
