removed debug logs

This commit is contained in:
Flaminel
2025-02-21 22:18:02 +02:00
parent fbe6ebaa6b
commit f91e85651f
2 changed files with 2 additions and 7 deletions
@@ -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);
}
@@ -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;
}
}