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/04/15 07:55:25 UTC
[GitHub] [airflow] uranusjr commented on a diff in pull request #23027: Meaningful error mssage in resolve_template_files
uranusjr commented on code in PR #23027:
URL: https://github.com/apache/airflow/pull/23027#discussion_r851127617
##########
airflow/models/abstractoperator.py:
##########
@@ -181,7 +181,9 @@ def resolve_template_files(self) -> None:
try:
content[i] = env.loader.get_source(env, item)[0] # type: ignore
except Exception as e:
- self.log.exception(e)
+ self.log.exception(
+ "Failed to get source with %s due to %s", item, str(e)
+ )
Review Comment:
```suggestion
self.log.exception("Failed to get source %s", item)
```
`exception` already prints the exception, don’t need to repeat it.
--
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