Skip to content

Commit 2887011

Browse files
committed
lib/host: improve logging debug
Signed-off-by: Olivier Hoareau <olivier.hoareau@vates.tech>
1 parent da47bf6 commit 2887011

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/host.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ def _all_available(kname: str) -> bool:
860860
))
861861

862862
self.block_devices_info = sorted(devices, key=lambda d: d.size, reverse=True)
863-
logging.debug("blockdevs found: %s", [d.name for d in self.block_devices_info])
863+
logging.debug(f"[{self}] blockdevs found: {[d.name for d in self.block_devices_info]}")
864864

865865
def disks(self) -> list[Host.BlockDeviceInfo]:
866866
""" List of all block devices (local disks, mdadm arrays, multipath devices). """

0 commit comments

Comments
 (0)