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/03/29 19:40:48 UTC

[GitHub] [airflow] dstandish commented on a change in pull request #22595: Log traceback only on DEBUG for KPO logs read interruption

dstandish commented on a change in pull request #22595:
URL: https://github.com/apache/airflow/pull/22595#discussion_r837847529



##########
File path: airflow/providers/cncf/kubernetes/utils/pod_manager.py
##########
@@ -214,9 +214,13 @@ def consume_logs(*, since_time: Optional[DateTime] = None, follow: bool = True)
                 for line in logs:
                     timestamp, message = self.parse_log_line(line.decode('utf-8'))
                     self.log.info(message)
-            except BaseHTTPError:  # Catches errors like ProtocolError(TimeoutError).
+            except BaseHTTPError:
                 self.log.warning(
-                    'Failed to read logs for pod %s',
+                    "Reading of logs was interrupted, likely due to a connection issue. "
+                    "Will retry momentarily.",

Review comment:
       ok take look 




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