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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to