Skip to content

Commit acf17ce

Browse files
committed
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 <[email protected]>
1 parent f5b2e24 commit acf17ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ceph-volume/ceph_volume/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def main(self, argv):
168168
# we warn only here, because it is possible that the configuration
169169
# file is not needed, or that it will be loaded by some other means
170170
# (like reading from lvm tags)
171-
logger.warning('ignoring inability to load ceph.conf', exc_info=1)
171+
logger.warning('ignoring inability to load ceph.conf')
172172
terminal.yellow(error)
173173
# dispatch to sub-commands
174174
terminal.dispatch(self.mapper, subcommand_args)

0 commit comments

Comments
 (0)