]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-volume: don't use MultiLogger in find_executable_on_host()
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 19 Jan 2022 14:04:20 +0000 (15:04 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 20 Jan 2022 08:06:13 +0000 (09:06 +0100)
This generates a lot of unnecessary messages on the terminal.

Fixes: https://tracker.ceph.com/issues/53934
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
src/ceph-volume/ceph_volume/util/system.py

index 2563c736feaf76874059feb714b044a9489e4bba..ed1fb8ed2a26d046087f464f12f4d0eeb7092efb 100644 (file)
@@ -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):