You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/11/02 08:28:19 UTC

[GitHub] [airflow] dolfinus commented on a diff in pull request #27442: Apply log formatter to every line of stdout/stderr in SSHOperator

dolfinus commented on code in PR #27442:
URL: https://github.com/apache/airflow/pull/27442#discussion_r1011360396


##########
airflow/providers/ssh/hooks/ssh.py:
##########
@@ -494,11 +494,13 @@ def exec_ssh_client_command(
                 if recv.recv_ready():
                     line = stdout.channel.recv(len(recv.in_buffer))
                     agg_stdout += line
-                    self.log.info(line.decode("utf-8", "replace").strip("\n"))
+                    for line in line.decode("utf-8", "replace").strip("\n").splitlines():
+                        self.log.info(line)

Review Comment:
   Secrets are already masked in logs. Also this is not a part of this PR



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org