Skip to content

nit: Remove duplicate warning when no OL metadata returned#50350

Merged
mobuchowski merged 1 commit intoapache:mainfrom
kacpermuda:fix-ol-warning-duplicate
May 9, 2025
Merged

nit: Remove duplicate warning when no OL metadata returned#50350
mobuchowski merged 1 commit intoapache:mainfrom
kacpermuda:fix-ol-warning-duplicate

Conversation

@kacpermuda
Copy link
Contributor

@kacpermuda kacpermuda commented May 8, 2025

In the scenario when Operator's OL method is returning None explicitly and not as a result of failure, we should not be logging the Exception on the warning level, as OL is the source of this exception. Missed that case when refactored it recently.
This is how it looks like now:
image

After the fix, only second warning will be displayed.


^ 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 fix-ol-warning-duplicate branch from dfdea45 to 20aaaec Compare May 8, 2025 14:29
Copy link
Contributor

@mobuchowski mobuchowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with one nit

@mobuchowski mobuchowski merged commit a94f6d8 into apache:main May 9, 2025
68 checks passed
@kacpermuda kacpermuda deleted the fix-ol-warning-duplicate branch May 9, 2025 08:27
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