From 880a30532253bae492ca5e4803a89787bed2e988 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 25 Feb 2020 16:21:03 -0600 Subject: [PATCH] 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 --- src/pybind/mgr/cephadm/module.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 49d7376723d..b2e791df1b8 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) -- 2.39.5