Skip to content
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

Fix flake8: logging.error(exc_info=True) --> logging.exception() #1862

Merged
merged 2 commits into from
Nov 21, 2022

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Nov 21, 2022

Hey, thanks for contributing to Haystack. Please review the contributor guidelines and confirm that the tests pass with at least one search engine.

Once your pull request has been submitted, the full test suite will be executed on https://github.com/django-haystack/django-haystack/actions/workflows/test.yml. Pull requests with passing tests are far more likely to be reviewed and merged.

Placate https://github.com/globality-corp/flake8-logging-format

@cclauss cclauss force-pushed the fix-flake8 branch 2 times, most recently from 3e2629d to 30fddf0 Compare November 21, 2022 14:01
@cclauss cclauss changed the title logging.error(exc_info=True) --> logging.exception() Fix flake8: logging.error(exc_info=True) --> logging.exception() Nov 21, 2022
@@ -23,7 +23,7 @@

def update_worker(args):
if len(args) != 10:
LOG.error("update_worker received incorrect arguments: %r", args)
LOG.exception("update_worker received incorrect arguments: %r", args)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be kept as an error logging? At logging time, the exception will not yet be raised, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good eyes!! Reverted

@claudep claudep merged commit 8ca7712 into django-haystack:master Nov 21, 2022
@cclauss cclauss deleted the fix-flake8 branch November 21, 2022 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants