aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-10-27 15:57:49 -0500
committerGitHub <noreply@github.com>2024-10-27 15:57:49 -0500
commit0968f0990e78375fbb2d94c4f7e2376c0da35f32 (patch)
tree613ac465cea32eb75e2da60e6bc388989d1ecdb7
parent5aeea9452d745a8e0c0f38b5c40088258b2f2e74 (diff)
parent97c430aaa8d1d1133eb0d017ca6067e69a22c502 (diff)
downloadslskd-0968f0990e78375fbb2d94c4f7e2376c0da35f32.tar.gz
Merge pull request #1235 from slskd/search-logs
Log search logs at the 'Debug' level
-rw-r--r--src/slskd/Application.cs2
-rw-r--r--src/slskd/Users/UserService.cs5
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)
{