Skip to content

separate query log message args with a comma #110

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

Merged
merged 2 commits into from
Aug 20, 2024

Conversation

timgraham
Copy link
Collaborator

Also, remove obsolete bits of query logging.

The output should be something like:
collection.udate_many({'$expr': {...}}, {'$set': {...}})
Copy link
Contributor

@Jibola Jibola left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines 42 to +44
def log(self, op, duration, args, kwargs=None):
# If kwargs are used by any operations in the future, they must be
# added to this logging.
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the likelihood that any operations will be added here in the future?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'm not sure. You can look at the kwargs for update_many(), for example, and see if you think developers will need some way to specify any of them for QuerySet operations.

@timgraham timgraham merged commit 9b2d02f into mongodb:main Aug 20, 2024
3 checks passed
@timgraham timgraham deleted the log-args-separator branch August 20, 2024 19:01
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.

2 participants