]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: reduce log level for asyncssh error messages
authorMelissa Li <melissali@redhat.com>
Wed, 23 Feb 2022 16:57:45 +0000 (11:57 -0500)
committerAdam King <adking@redhat.com>
Tue, 3 May 2022 00:48:33 +0000 (20:48 -0400)
Fixes: https://tracker.ceph.com/issues/54132
Signed-off-by: Melissa Li <melissali@redhat.com>
(cherry picked from commit 95d5db0f4297286c420057ac10f1b63d3116eace)

src/pybind/mgr/cephadm/ssh.py

index 034688023e9bff00bbc054af47e95b8d7500ec4f..75b3efcec397ea6fdee3fa1811b0925a6d699eb7 100644 (file)
@@ -92,7 +92,7 @@ class SSHManager:
     def redirect_log(self, host: str, addr: str) -> Iterator[None]:
         log_string = StringIO()
         ch = logging.StreamHandler(log_string)
-        ch.setLevel(logging.DEBUG)
+        ch.setLevel(logging.INFO)
         asyncssh_logger.addHandler(ch)
 
         try:
@@ -100,8 +100,7 @@ class SSHManager:
         except OSError as e:
             self.mgr.offline_hosts.add(host)
             log_content = log_string.getvalue()
-            msg = f"Can't communicate with remote host `{addr}`, possibly because python3 is not installed there. {str(e)}" + \
-                '\n' + f'Log: {log_content}'
+            msg = f"Can't communicate with remote host `{addr}`, possibly because python3 is not installed there. {str(e)}"
             logger.exception(msg)
             raise OrchestratorError(msg)
         except asyncssh.Error as e: