You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "uranusjr (via GitHub)" <gi...@apache.org> on 2023/06/12 06:32:09 UTC

[GitHub] [airflow] uranusjr commented on a diff in pull request #31838: Various fixes on ECS run task operator

uranusjr commented on code in PR #31838:
URL: https://github.com/apache/airflow/pull/31838#discussion_r1226150806


##########
airflow/providers/amazon/aws/hooks/ecs.py:
##########
@@ -185,7 +185,15 @@ def _get_log_events(self, skip: int = 0) -> Generator:
         except ClientError as error:
             if error.response["Error"]["Code"] != "ResourceNotFoundException":
                 self.logger.warning("Error on retrieving Cloudwatch log events", error)
-
+            else:
+                self.logger.info(
+                    "Cannot find log stream yet, it can take a couple of seconds to show up.\n"
+                    "If this error persists, check that the log group and stream are correct:\n"
+                    "group: %s\n"
+                    "stream: %s",

Review Comment:
   Any specific reason this log should be multiple lines? A log message with literal newlines is generally avoided since it breaks log formatting (timestamp prefixes, for example). If the lines are intended to separate the situation summary and details, it is more preferred to log them separately instead.



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