diff --git a/code/Infrastructure/Verticals/DownloadClient/QBittorrent/QBitService.cs b/code/Infrastructure/Verticals/DownloadClient/QBittorrent/QBitService.cs index 4642d2f..d4ec298 100644 --- a/code/Infrastructure/Verticals/DownloadClient/QBittorrent/QBitService.cs +++ b/code/Infrastructure/Verticals/DownloadClient/QBittorrent/QBitService.cs @@ -353,6 +353,8 @@ public class QBitService : DownloadService, IQBitService continue; } + _logger.LogInformation("no hardlinks found | changing category for {name}", download.Name); + await ((QBitService)Proxy).ChangeCategory(download.Hash, _downloadCleanerConfig.NoHardlinksCategory); await _notifier.NotifyCategoryChanged(download.Category, _downloadCleanerConfig.NoHardlinksCategory); } diff --git a/code/Infrastructure/Verticals/Files/HardlinkFileService.cs b/code/Infrastructure/Verticals/Files/HardlinkFileService.cs index cef3a7d..583e8b8 100644 --- a/code/Infrastructure/Verticals/Files/HardlinkFileService.cs +++ b/code/Infrastructure/Verticals/Files/HardlinkFileService.cs @@ -22,17 +22,12 @@ public class HardlinkFileService : IHardlinkFileService return default; } - // TODO remove - _logger.LogDebug("file {file} exists", filePath); - if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { _logger.LogDebug("Windows platform detected"); return GetWindowsHardLinkCount(filePath); } - // TODO remove - _logger.LogDebug("Unix platform detected"); return GetUnixHardLinkCount(filePath); } @@ -82,8 +77,6 @@ public class HardlinkFileService : IHardlinkFileService { if (Syscall.stat(filePath, out Stat stat) == 0) { - // TODO remove - _logger.LogDebug("file {file} has links", filePath); return stat.st_nlink; } }