eladkal commented on code in PR #49108:
URL: https://github.com/apache/airflow/pull/49108#discussion_r2039263229
##########
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:
Should we say something in the OL providers docs about this?
`OPENLINEAGE_CLIENT_LOGGING` is not airflow config, we may want to hint
Airflow users about debug options and forward for further read in OL client docs
--
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]