Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherMann committed Jan 16, 2025
1 parent 3ab49bb commit 3c195d0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,11 @@ protected async Task<VirtualDisk> 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)
Expand Down

0 comments on commit 3c195d0

Please sign in to comment.