-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Fix: In the log.exception() , the format specifier for the first parameter is missing #58295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
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. |
|
cc @jason810496 |
Lee-W
left a comment
There was a problem hiding this 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?
|
No problem! |
jason810496
left a comment
There was a problem hiding this 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.
641f652 to
990a3bd
Compare
Co-authored-by: Wei Lee <weilee.rx@gmail.com>
|
thanks for the review @Lee-W ! |
…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>
…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>
|
@jason810496 , @Lee-W thanks for the review! |
…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>
…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>
…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>
…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>
closes: #58294
Log message format is incorrect, which may cause log parsing errors or information loss.
This PR modifies the format in log.exception().
airflow/airflow-core/src/airflow/dag_processing/bundles/base.py
Lines 414 to 421 in daf3dee
^ 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.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.