kacpermuda commented on code in PR #50350:
URL: https://github.com/apache/airflow/pull/50350#discussion_r2080993877


##########
providers/openlineage/src/airflow/providers/openlineage/extractors/base.py:
##########
@@ -138,7 +138,10 @@ def extract_on_failure(self, task_instance) -> 
OperatorLineage | None:
 
     def _get_openlineage_facets(self, get_facets_method, *args) -> 
OperatorLineage | None:
         try:
-            facets: OperatorLineage = get_facets_method(*args)
+            facets: OperatorLineage | None = get_facets_method(*args)
+            if facets is None:
+                self.log.debug("OpenLineage method returned `None`")

Review Comment:
   This log may be a bit redundant any way, I just added it as it's an early 
exit from the function so it will be easier to debug in the future. Just before 
the method there is a log with it's name and then in extractor manager, just 
after extractor, there is a log again with method name and result, so I'd say 
it's obvious from the log context already.



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