This commit is contained in:
Samuel Clay 2020-12-18 10:23:08 -05:00
parent 045eb5601f
commit 3a04def0eb
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 334 B

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 394 B

After

Width:  |  Height:  |  Size: 2.4 KiB

View file

@ -35,7 +35,7 @@ class MongoDumpMiddleware(object):
if not self.activated(profiler): return
self._used_msg_ids = []
if (not getattr(MongoClient, '_logging', False) and
hasattr(MongoClient, '_send_message_with_response')
hasattr(MongoClient, '_send_message_with_response') and
hasattr(MongoReplicaSetClient, '_send_message_with_response')):
# save old methods
setattr(MongoClient, '_logging', True)