]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: silence remoto logger info messages
authorSage Weil <sage@redhat.com>
Tue, 25 Feb 2020 22:21:03 +0000 (16:21 -0600)
committerSage Weil <sage@redhat.com>
Thu, 27 Feb 2020 18:05:42 +0000 (12:05 -0600)
Remoto issues events like

 Running command: /usr/bin/python3 -u

at level 'info' which are below the threshold of other 'info' messages in
cephadm.  So, silence info and below.  We still want to see warning and
above.

Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/cephadm/module.py

index 49d7376723dd327ebce6daf17cdf1733a0ccf45c..b2e791df1b8ce4936f32f2b28b0158a8a9cc74e2 100644 (file)
@@ -1273,9 +1273,11 @@ class CephadmOrchestrator(orchestrator.Orchestrator, MgrModule):
         n = self.ssh_user + '@' + host
         self.log.debug("Opening connection to {} with ssh options '{}'".format(
             n, self._ssh_options))
+        child_logger=self.log.getChild(n)
+        child_logger.setLevel('WARNING')
         conn = remoto.Connection(
             n,
-            logger=self.log.getChild(n),
+            logger=child_logger,
             ssh_options=self._ssh_options)
 
         r = conn.import_module(remotes)