From a63bae0bb9ad4eb22a000a92eb773860d3dcdb29 Mon Sep 17 00:00:00 2001 From: Flaminel Date: Fri, 21 Feb 2025 21:35:07 +0200 Subject: [PATCH] added debug logs --- .../Infrastructure/Verticals/Files/HardlinkFileService.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/Infrastructure/Verticals/Files/HardlinkFileService.cs b/code/Infrastructure/Verticals/Files/HardlinkFileService.cs index f349bf4..db8a963 100644 --- a/code/Infrastructure/Verticals/Files/HardlinkFileService.cs +++ b/code/Infrastructure/Verticals/Files/HardlinkFileService.cs @@ -21,11 +21,17 @@ 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); } @@ -77,6 +83,8 @@ public class HardlinkFileService : IHardlinkFileService if (stat_file(filePath, ref stat) == 0) { + // TODO remove + _logger.LogDebug("file {file} has {links} links", filePath, stat.st_nlink); return stat.st_nlink; } }