Skip to content

Commit 2e7a6d1

Browse files
committed
improve logging
Signed-off-by: Zen <[email protected]>
1 parent 6683054 commit 2e7a6d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ugrd/fs/mounts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,8 @@ def _autodetect_mount(self, mountpoint) -> None:
588588
mount_name = "root" if mountpoint == "/" else mountpoint.removeprefix("/")
589589
if mount_name in self["mounts"] and any(s_type in self["mounts"][mount_name] for s_type in SOURCE_TYPES):
590590
return self.logger.warning(
591-
"[%s] Mount config already set: %s" % (mountpoint, pretty_print(self["mounts"][mount_name]))
591+
"[%s] Skipping autodetection, mount config already set:\n%s"
592+
% (colorize(mountpoint, "yellow"), pretty_print(self["mounts"][mount_name]))
592593
)
593594

594595
mount_config = {mount_name: {"type": "auto", "options": ["ro"]}} # Default to auto and ro

0 commit comments

Comments
 (0)