Skip to content

Conversation

@kacpermuda
Copy link
Contributor

Due to changes in Airflow logging settings in Airflow 3, setting AIRFLOW__LOGGING__LOGGING_LEVEL=DEBUG is not enough for OpenLineage client to log on DEBUG level. I'm assuming it's because in OL client we use logging.getLogger(__name__) that then fallbacks to root logger, and not airflow logger or its descendants used and configured in AF3? As we can't tie the OL client directly with Airflow logging in the OL client's code - we explicitly propagate Airflow logging level from the OL provider to OL client, if OL client's logging level is not already set explicitly by the user. This looks like easy and foolproof solution so that the users debugging OpenLineage can still do so with use of single variable: AIRFLOW__LOGGING__LOGGING_LEVEL without the need to manually specify OPENLINEAGE_CLIENT_LOGGING.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@kacpermuda kacpermuda force-pushed the ol-explicit-forward-logging-level branch from eabc42b to 817aa5b Compare April 11, 2025 11:01
@kacpermuda kacpermuda force-pushed the ol-explicit-forward-logging-level branch from 817aa5b to c40ddd7 Compare April 11, 2025 11:22
@eladkal eladkal merged commit 6bd5354 into apache:main Apr 11, 2025
65 checks passed
@kacpermuda kacpermuda deleted the ol-explicit-forward-logging-level branch April 11, 2025 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants