aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-12-16 18:35:24 -0600
committerJP Dillingham <jp@dillingham.me>2024-12-16 18:35:24 -0600
commit29a10ae1952dc0beb25703898f8157b8f4ed4302 (patch)
tree7ad75ad9f2277a824ac60c3364351ae5f5db887b /src
parent1a0ab325c75e0f89a1afd6227402b431aeb3db32 (diff)
downloadslskd-29a10ae1952dc0beb25703898f8157b8f4ed4302.tar.gz
log search pruning
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index 38d25477..d7b9ba34 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -1153,7 +1153,15 @@ namespace slskd
if (age.HasValue)
{
- Search.Prune(age.Value);
+ try
+ {
+ var pruned = Search.Prune(age.Value);
+ Log.Debug("Pruned {Count} search records", pruned);
+ }
+ catch
+ {
+ Log.Error("Encountered one or more errors while pruning searches");
+ }
}
}