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


##########
providers/openlineage/src/airflow/providers/openlineage/plugins/adapter.py:
##########
@@ -81,6 +83,11 @@ def __init__(self, client: OpenLineageClient | None = None, 
secrets_masker: Secr
 
     def get_or_create_openlineage_client(self) -> OpenLineageClient:
         if not self._client:
+            # If not already set explicitly - propagate airflow logging level 
to OpenLineage client
+            airflow_core_log_level = airflow_conf.get("logging", 
"logging_level", fallback="INFO")
+            if not os.getenv("OPENLINEAGE_CLIENT_LOGGING") and 
airflow_core_log_level != "INFO":
+                os.environ["OPENLINEAGE_CLIENT_LOGGING"] = 
airflow_core_log_level

Review Comment:
   Good idea, let me also update the provider docs, there is a paragraph on 
debugging there.



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