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

QueryBuilder: Deprecate debug argument and use logger #6055

Merged
merged 1 commit into from Jun 17, 2023

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Jun 11, 2023

The QueryBuilder defined the debug flag, which when set to True would cause certain methods to print additional debug information. This should go through the logging functionality, however, so the print statements are replaced by a logger.debug call.

Since the debug messages can now be activated by configuring the logger log level, the debug argument is no longer needed and is deprecated.

@sphuber sphuber force-pushed the fix/querybuilder-log-level branch 2 times, most recently from 8d58bc2 to 9734a19 Compare June 11, 2023 18:06
The `QueryBuilder` defined the `debug` flag, which when set to `True`
would cause certain methods to print additional debug information. This
should go through the logging functionality, however, so the print
statements are replaced by a `logger.debug` call.

Since the debug messages can now be activated by configuring the logger
log level, the `debug` argument is no longer needed and is deprecated.
@sphuber sphuber force-pushed the fix/querybuilder-log-level branch 2 times, most recently from 8188915 to 86bddc2 Compare June 12, 2023 17:21
@unkcpz unkcpz self-requested a review June 15, 2023 12:10
Copy link
Member

@unkcpz unkcpz left a comment

Choose a reason for hiding this comment

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

@sphuber looks all good! Thanks.

@sphuber sphuber merged commit 603ff37 into aiidateam:main Jun 17, 2023
12 checks passed
@sphuber sphuber deleted the fix/querybuilder-log-level branch June 17, 2023 18:35
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