From e6dde2e32403eeb66df1a50be77937f03eef4537 Mon Sep 17 00:00:00 2001 From: Dan Bungert Date: Tue, 12 Mar 2024 18:09:48 -0600 Subject: [PATCH] filesystem: basic match logging --- subiquity/models/filesystem.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/subiquity/models/filesystem.py b/subiquity/models/filesystem.py index d149ab6b..5fcb5054 100644 --- a/subiquity/models/filesystem.py +++ b/subiquity/models/filesystem.py @@ -1641,6 +1641,7 @@ class FilesystemModel: return matchers def disk_for_match(self, disks, match): + log.info(f"considering {disks} for {match}") matchers = self._make_matchers(match) candidates = [] for candidate in disks: @@ -1658,7 +1659,9 @@ class FilesystemModel: if match.get("size") == "largest": candidates.sort(key=lambda d: d.size, reverse=True) if candidates: + log.info(f"For match {match}, using the first candidate from {candidates}") return candidates[0] + log.info(f"For match {match}, no devices match") return None def assign_omitted_offsets(self):