BobDu commented on code in PR #27917:
URL: https://github.com/apache/airflow/pull/27917#discussion_r1036745615
##########
airflow/providers/amazon/aws/hooks/athena.py:
##########
@@ -109,7 +113,11 @@ def check_query_status(self, query_execution_id: str) ->
str | None:
try:
state = response["QueryExecution"]["Status"]["State"]
except Exception as ex:
- self.log.error("Exception while getting query state %s", ex)
+ self.log.error(
+ "Exception while getting query state %s. Query execution id:
%s",
+ ex,
+ query_execution_id,
+ )
Review Comment:
I'm not sure if we should use `log.exception `.
In this PR I just added query execution id in the log message.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]