Skip to content

Conversation

@NoahStapp
Copy link
Contributor

No description provided.

@blink1073
Copy link
Member

We discussed adding a test to ensure the log is working without listeners.

@mongodb-drivers-pr-bot mongodb-drivers-pr-bot bot requested a review from Jibola June 25, 2024 19:20
@NoahStapp
Copy link
Contributor Author

We discussed adding a test to ensure the log is working without listeners.

Test added that covers all three existing pymongo.logger components.

and self.opts._event_listeners is not None
and self.opts._event_listeners.enabled_for_cmap
)
self.enabled_for_logging = self.handshake and not self.opts.is_monitor
Copy link
Member

Choose a reason for hiding this comment

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

is_monitor is a duplicate of handshake. handshake is false for monitor pools and True for app pools. I suggest removing it.

@NoahStapp NoahStapp requested a review from ShaneHarvey June 25, 2024 19:42
@NoahStapp NoahStapp merged commit ff1d903 into mongodb:master Jun 25, 2024
NoahStapp added a commit to NoahStapp/mongo-python-driver that referenced this pull request Jun 25, 2024
NoahStapp added a commit to NoahStapp/mongo-python-driver that referenced this pull request Jun 25, 2024
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.

3 participants