removed debug logs
This commit is contained in:
@@ -353,6 +353,8 @@ public class QBitService : DownloadService, IQBitService
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_logger.LogInformation("no hardlinks found | changing category for {name}", download.Name);
|
||||||
|
|
||||||
await ((QBitService)Proxy).ChangeCategory(download.Hash, _downloadCleanerConfig.NoHardlinksCategory);
|
await ((QBitService)Proxy).ChangeCategory(download.Hash, _downloadCleanerConfig.NoHardlinksCategory);
|
||||||
await _notifier.NotifyCategoryChanged(download.Category, _downloadCleanerConfig.NoHardlinksCategory);
|
await _notifier.NotifyCategoryChanged(download.Category, _downloadCleanerConfig.NoHardlinksCategory);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,17 +22,12 @@ public class HardlinkFileService : IHardlinkFileService
|
|||||||
return default;
|
return default;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO remove
|
|
||||||
_logger.LogDebug("file {file} exists", filePath);
|
|
||||||
|
|
||||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||||
{
|
{
|
||||||
_logger.LogDebug("Windows platform detected");
|
_logger.LogDebug("Windows platform detected");
|
||||||
return GetWindowsHardLinkCount(filePath);
|
return GetWindowsHardLinkCount(filePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO remove
|
|
||||||
_logger.LogDebug("Unix platform detected");
|
|
||||||
return GetUnixHardLinkCount(filePath);
|
return GetUnixHardLinkCount(filePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -82,8 +77,6 @@ public class HardlinkFileService : IHardlinkFileService
|
|||||||
{
|
{
|
||||||
if (Syscall.stat(filePath, out Stat stat) == 0)
|
if (Syscall.stat(filePath, out Stat stat) == 0)
|
||||||
{
|
{
|
||||||
// TODO remove
|
|
||||||
_logger.LogDebug("file {file} has links", filePath);
|
|
||||||
return stat.st_nlink;
|
return stat.st_nlink;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user