From: Sage Weil Date: Tue, 25 Feb 2020 22:21:03 +0000 (-0600) Subject: mgr/cephadm: silence remoto logger info messages X-Git-Tag: v15.1.1~212^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=880a30532253bae492ca5e4803a89787bed2e988;p=ceph.git mgr/cephadm: silence remoto logger info messages 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 --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 49d7376723dd..b2e791df1b8c 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -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)