aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2023-12-29 13:13:45 -0600
committerJP Dillingham <jp@dillingham.me>2023-12-29 13:13:45 -0600
commitf5ad130f8afdde78a5c7a1530277e1c459c58f9c (patch)
treedb7b5ae69307ee59f4dddde1862cf33d385a9dbe /src
parent9f6a859c0b9ffc4388da9370020443e31863435f (diff)
downloadslskd-f5ad130f8afdde78a5c7a1530277e1c459c58f9c.tar.gz
remove junk logs
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index a746c282..5c926644 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -766,13 +766,10 @@ namespace slskd
private async Task MaybeRescanShares()
{
- Log.Warning("Running MaybeRescanShares");
-
// ignore this if we're already scanning. there are multiple safeguards using
// SemaphoreSlim later in the call chain if we manage to slip by somehow, though
if (Shares.StateMonitor.CurrentValue.Scanning)
{
- Log.Warning("Already scanning");
return;
}
@@ -781,7 +778,6 @@ namespace slskd
// no configured TTL; never re-scan automatically
if (!ttl.HasValue)
{
- Log.Warning("No ttl configured");
return;
}
@@ -790,10 +786,11 @@ namespace slskd
.AddMinutes(-ttl.Value)
.ToUnixTimeMilliseconds();
- // get a list of all scans 1) started after our cutoff timestamp
+ // get a list of all scans that 1) started after our cutoff timestamp
var scansInRange = await Shares.ListScansAsync(startedAtOrAfter: cutoffTimestamp);
- // 2) that succeeded (have a valid EndedAt) and 3) have not been marked suspect
+ // 2) that succeeded (have a valid EndedAt)
+ // and 3) have not been marked suspect
// if there's no scan that meets all 3 criteria, try to re-scan
if (!scansInRange.Any(s => s.EndedAt is not null && !s.Suspect))
{