Skip to content

Conversation

@rich7420
Copy link
Contributor

closes: #58294

Log message format is incorrect, which may cause log parsing errors or information loss.
This PR modifies the format in log.exception().

def _log_exc(self, msg):
log.exception(
"% name=%s version=%s lock_file=%s",
msg,
self.bundle_name,
self.version,
self.lock_file_path,
)


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

@rich7420 rich7420 changed the title Fix: In the log.exception() call at line 416, the format specifier for the first parameter is missing Fix: In the log.exception() , the format specifier for the first parameter is missing Nov 14, 2025
@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Stale PRs per the .github/workflows/stale.yml policy file label Jan 20, 2026
@rich7420
Copy link
Contributor Author

cc @jason810496
could you take a look plz

Copy link
Member

@Lee-W Lee-W left a comment

Choose a reason for hiding this comment

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

Could we add a unit test for this?

@rich7420
Copy link
Contributor Author

No problem!

Copy link
Member

@jason810496 jason810496 left a comment

Choose a reason for hiding this comment

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

The patch LGTM.

Could we add a unit test for this?

I just requested changes, in case someone else accidentally merges it.

Co-authored-by: Wei Lee <weilee.rx@gmail.com>
@rich7420
Copy link
Contributor Author

thanks for the review @Lee-W !

@Lee-W Lee-W requested a review from jason810496 January 20, 2026 14:27
@jason810496 jason810496 added the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Jan 20, 2026
@jason810496 jason810496 merged commit 0e31fcb into apache:main Jan 20, 2026
71 checks passed
github-actions bot pushed a commit that referenced this pull request Jan 20, 2026
…e first parameter is missing (#58295)

* fix the format

* add a unit test

* Update airflow-core/tests/unit/dag_processing/bundles/test_base.py

Co-authored-by: Wei Lee <weilee.rx@gmail.com>

* fix errors

---------
(cherry picked from commit 0e31fcb)

Co-authored-by: KUAN-HAO HUANG <101171023+rich7420@users.noreply.github.com>
Co-authored-by: Wei Lee <weilee.rx@gmail.com>
@github-actions
Copy link

Backport successfully created: v3-1-test

Status Branch Result
v3-1-test PR Link

github-actions bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Jan 20, 2026
…e first parameter is missing (apache#58295)

* fix the format

* add a unit test

* Update airflow-core/tests/unit/dag_processing/bundles/test_base.py

Co-authored-by: Wei Lee <weilee.rx@gmail.com>

* fix errors

---------
(cherry picked from commit 0e31fcb)

Co-authored-by: KUAN-HAO HUANG <101171023+rich7420@users.noreply.github.com>
Co-authored-by: Wei Lee <weilee.rx@gmail.com>
Lee-W added a commit that referenced this pull request Jan 21, 2026
…e first parameter is missing (#58295) (#60828)

Co-authored-by: KUAN-HAO HUANG <101171023+rich7420@users.noreply.github.com>
Co-authored-by: Wei Lee <weilee.rx@gmail.com>
@rich7420
Copy link
Contributor Author

@jason810496 , @Lee-W thanks for the review!

jason810496 pushed a commit to jason810496/airflow that referenced this pull request Jan 22, 2026
…meter is missing (apache#58295)

* fix the format

* add a unit test

* Update airflow-core/tests/unit/dag_processing/bundles/test_base.py

Co-authored-by: Wei Lee <weilee.rx@gmail.com>

* fix errors

---------

Co-authored-by: Wei Lee <weilee.rx@gmail.com>
amoghrajesh pushed a commit to astronomer/airflow that referenced this pull request Jan 22, 2026
…meter is missing (apache#58295)

* fix the format

* add a unit test

* Update airflow-core/tests/unit/dag_processing/bundles/test_base.py

Co-authored-by: Wei Lee <weilee.rx@gmail.com>

* fix errors

---------

Co-authored-by: Wei Lee <weilee.rx@gmail.com>
suii2210 pushed a commit to suii2210/airflow that referenced this pull request Jan 26, 2026
…meter is missing (apache#58295)

* fix the format

* add a unit test

* Update airflow-core/tests/unit/dag_processing/bundles/test_base.py

Co-authored-by: Wei Lee <weilee.rx@gmail.com>

* fix errors

---------

Co-authored-by: Wei Lee <weilee.rx@gmail.com>
shreyas-dev pushed a commit to shreyas-dev/airflow that referenced this pull request Jan 29, 2026
…meter is missing (apache#58295)

* fix the format

* add a unit test

* Update airflow-core/tests/unit/dag_processing/bundles/test_base.py

Co-authored-by: Wei Lee <weilee.rx@gmail.com>

* fix errors

---------

Co-authored-by: Wei Lee <weilee.rx@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:DAG-processing backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch stale Stale PRs per the .github/workflows/stale.yml policy file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

In the log.exception() call , the format specifier for the first parameter is missing

4 participants