From f91e85651fa48eec807f4f545db73826abc1c40a Mon Sep 17 00:00:00 2001 From: Flaminel Date: Fri, 21 Feb 2025 22:18:02 +0200 Subject: [PATCH] removed debug logs --- .../Verticals/DownloadClient/QBittorrent/QBitService.cs | 2 ++ code/Infrastructure/Verticals/Files/HardlinkFileService.cs | 7 ------- 2 files changed, 2 insertions(+), 7 deletions(-) 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; } }