From: Guillaume Abrioux Date: Wed, 19 Jan 2022 14:04:20 +0000 (+0100) Subject: ceph-volume: don't use MultiLogger in find_executable_on_host() X-Git-Tag: v15.2.16~24^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=dcfb3167a0d95a001d622f716b863cdc28abee32;p=ceph.git ceph-volume: don't use MultiLogger in find_executable_on_host() This generates a lot of unnecessary messages on the terminal. Fixes: https://tracker.ceph.com/issues/53934 Signed-off-by: Guillaume Abrioux (cherry picked from commit 3be55621600be3ebc9c70295a3a351dab426b3a3) --- diff --git a/src/ceph-volume/ceph_volume/util/system.py b/src/ceph-volume/ceph_volume/util/system.py index 2563c736feaf..ed1fb8ed2a26 100644 --- a/src/ceph-volume/ceph_volume/util/system.py +++ b/src/ceph-volume/ceph_volume/util/system.py @@ -59,10 +59,10 @@ def find_executable_on_host(locations=[], executable='', binary_check='/bin/ls') stdout = as_string(process.stdout.read()) if stdout: executable_on_host = stdout.split('\n')[0] - mlogger.info('Executable {} found on the host, will use {}'.format(executable, executable_on_host)) + logger.info('Executable {} found on the host, will use {}'.format(executable, executable_on_host)) return executable_on_host else: - mlogger.warning('Executable {} not found on the host, will return {} as-is'.format(executable, executable)) + logger.warning('Executable {} not found on the host, will return {} as-is'.format(executable, executable)) return executable def which(executable, run_on_host=False):