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: v17.1.0~28^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c93ae89d853b736932aa5cf6ba46a5c9b01e80dd;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 2563c736fea..ed1fb8ed2a2 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):