diff options
| author | JP Dillingham <jp@dillingham.me> | 2024-10-27 15:57:49 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-27 15:57:49 -0500 |
| commit | 0968f0990e78375fbb2d94c4f7e2376c0da35f32 (patch) | |
| tree | 613ac465cea32eb75e2da60e6bc388989d1ecdb7 /src | |
| parent | 5aeea9452d745a8e0c0f38b5c40088258b2f2e74 (diff) | |
| parent | 97c430aaa8d1d1133eb0d017ca6067e69a22c502 (diff) | |
| download | slskd-0968f0990e78375fbb2d94c4f7e2376c0da35f32.tar.gz | |
Merge pull request #1235 from slskd/search-logs
Log search logs at the 'Debug' level
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Application.cs | 2 | ||||
| -rw-r--r-- | src/slskd/Users/UserService.cs | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index d441160e..b0372422 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -1456,7 +1456,7 @@ namespace slskd // and we don't want to incur the massive penalties that would caching data for each request. var forecastedPosition = Transfers.Uploads.Queue.ForecastPosition(username); - Log.Information("[{Context}]: Sending {Count} records to {Username} for query '{Query}'", "SEARCH RESULT SENT", results.Count(), username, query.SearchText); + Log.Debug("Sending search response with {Count} files to {Username} for query '{Query}'", results.Count(), username, query.SearchText); Metrics.Search.ResponsesSent.Inc(1); diff --git a/src/slskd/Users/UserService.cs b/src/slskd/Users/UserService.cs index d6a92e19..ead1d812 100644 --- a/src/slskd/Users/UserService.cs +++ b/src/slskd/Users/UserService.cs @@ -411,7 +411,10 @@ namespace slskd.Users // the application. these sorts of blacklists should be relatively static (i think) if (blacklistOptionsHash != LastBlacklistOptionsHash) { - Log.Debug("Blacklist options changed: {JSON}", options.Blacklist.ToJson()); + if (!string.IsNullOrEmpty(LastBlacklistOptionsHash)) + { + Log.Debug("Blacklist options changed: {JSON}", options.Blacklist.ToJson()); + } if (!options.Blacklist.Enabled) { |
