From 4fe3ccb25b238eab999d40f23138ed36197fcd05 Mon Sep 17 00:00:00 2001 From: Mikita Iwanowski Date: Mon, 21 Oct 2024 12:51:32 +0200 Subject: [PATCH] debug log --- providers/os/connection/snapshot/blockdevices.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/providers/os/connection/snapshot/blockdevices.go b/providers/os/connection/snapshot/blockdevices.go index 790a6b95d5..24ecb54589 100644 --- a/providers/os/connection/snapshot/blockdevices.go +++ b/providers/os/connection/snapshot/blockdevices.go @@ -180,6 +180,11 @@ func (blockEntries BlockDevices) FindDevice(requested string) (BlockDevice, erro return devices[0], nil } + log.Debug(). + Str("device", requested). + Any("checked_names", lmsCache). + Msg("no device found") + return BlockDevice{}, fmt.Errorf("no block device found with name %s", requested) }