From 3be55621600be3ebc9c70295a3a351dab426b3a3 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Wed, 19 Jan 2022 15:04:20 +0100 Subject: [PATCH] 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 --- src/ceph-volume/ceph_volume/util/system.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ceph-volume/ceph_volume/util/system.py b/src/ceph-volume/ceph_volume/util/system.py index 2563c736feaf7..ed1fb8ed2a26d 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): -- 2.39.5