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


##########
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:
   You can also log which method - unless this is immediately obvious from the 
context



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