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:
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: