From acf17cef645f1fa40e51bcaa9d0ab2ac0b51ea05 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Wed, 12 Nov 2025 15:46:17 +0000 Subject: [PATCH] ceph-volume: remove exc_info from ceph.conf load warning This commit removes exc_info=1 from the logger.warning call when failing to load ceph.conf. According to the preceding comment, this scenario can happen legitimately, so it is not an unexpected error, it means there is no need to clutter the logs with a full python traceback for this case. Signed-off-by: Guillaume Abrioux --- src/ceph-volume/ceph_volume/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ceph-volume/ceph_volume/main.py b/src/ceph-volume/ceph_volume/main.py index 4f27f429e89e2..0b1bbd3e0fd07 100644 --- a/src/ceph-volume/ceph_volume/main.py +++ b/src/ceph-volume/ceph_volume/main.py @@ -168,7 +168,7 @@ Ceph Conf: {ceph_path} # we warn only here, because it is possible that the configuration # file is not needed, or that it will be loaded by some other means # (like reading from lvm tags) - logger.warning('ignoring inability to load ceph.conf', exc_info=1) + logger.warning('ignoring inability to load ceph.conf') terminal.yellow(error) # dispatch to sub-commands terminal.dispatch(self.mapper, subcommand_args) -- 2.39.5