diff options
| -rw-r--r-- | src/slskd/Transfers/Downloads/DownloadService.cs | 6 | ||||
| -rw-r--r-- | src/slskd/Transfers/Uploads/UploadService.cs | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/slskd/Transfers/Downloads/DownloadService.cs b/src/slskd/Transfers/Downloads/DownloadService.cs index 932c97ee..25133629 100644 --- a/src/slskd/Transfers/Downloads/DownloadService.cs +++ b/src/slskd/Transfers/Downloads/DownloadService.cs @@ -509,7 +509,11 @@ namespace slskd.Transfers.Downloads var pruned = context.SaveChanges(); - Log.Debug("Pruned {Count} expired downloads with state {State}", pruned, state); + if (pruned > 0) + { + Log.Debug("Pruned {Count} expired downloads with state {State}", pruned, state); + } + return pruned; } catch (Exception ex) diff --git a/src/slskd/Transfers/Uploads/UploadService.cs b/src/slskd/Transfers/Uploads/UploadService.cs index efb08233..04e6a431 100644 --- a/src/slskd/Transfers/Uploads/UploadService.cs +++ b/src/slskd/Transfers/Uploads/UploadService.cs @@ -485,7 +485,11 @@ namespace slskd.Transfers.Uploads var pruned = context.SaveChanges(); - Log.Debug("Pruned {Count} expired uploads with state {State}", pruned, state); + if (pruned > 0) + { + Log.Debug("Pruned {Count} expired uploads with state {State}", pruned, state); + } + return pruned; } catch (Exception ex) |
