diff --git a/src/modules/src/Eryph.Modules.Controller/Inventory/UpdateInventoryCommandHandlerBase.cs b/src/modules/src/Eryph.Modules.Controller/Inventory/UpdateInventoryCommandHandlerBase.cs index adb2be0e..8e788620 100644 --- a/src/modules/src/Eryph.Modules.Controller/Inventory/UpdateInventoryCommandHandlerBase.cs +++ b/src/modules/src/Eryph.Modules.Controller/Inventory/UpdateInventoryCommandHandlerBase.cs @@ -295,7 +295,11 @@ protected async Task AddOrUpdateDisk( { var disk = await GetDisk(agentName, diskInfo); if (disk is not null && disk.LastSeen >= timestamp) + { + _logger.LogDebug("Skipping inventory update for disk {DiskId} with timestamp {Timestamp:O}. Most recent information is dated {LastSeen:O}.", + disk.Id, timestamp, disk.LastSeen); return disk; + } VirtualDisk? parentDisk = null; if (diskInfo.Parent is not null)