Skip to content

Commit 4424bfa

Browse files
committed
testing
1 parent 7d4495d commit 4424bfa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pymongo/asynchronous/mongo_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434

3535
import contextlib
3636
import os
37+
import threading
3738
import traceback
3839
import warnings
3940
import weakref
@@ -2567,7 +2568,7 @@ async def run(self) -> T:
25672568
self._check_last_error(check_csot=True)
25682569
try:
25692570
if self._operation in (_Op.LIST_COLLECTIONS, _Op.INSERT):
2570-
print(f"Retryable read for {self._operation}")
2571+
print(f"{threading.current_thread().name} -- Retryable read for {self._operation}")
25712572
res = await self._read() if self._is_read else await self._write()
25722573
if self._operation in (_Op.LIST_COLLECTIONS, _Op.INSERT):
25732574
print(f"Result for {self._operation}: {res}")

pymongo/asynchronous/network.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
import datetime
1919
import logging
20+
import threading
2021
import time
2122
from typing import (
2223
TYPE_CHECKING,
@@ -135,7 +136,7 @@ async def command(
135136

136137
publish = listeners is not None and listeners.enabled_for_commands
137138
if name == "listCollections":
138-
print(f"Publishing is {publish} listeners: {listeners} {listeners.enabled_for_commands if listeners is not None else 'NONE'}!")
139+
print(f"{threading.current_thread().name} -- Publishing is {publish} listeners: {listeners} {listeners.enabled_for_commands if listeners is not None else 'NONE'}!")
139140
start = datetime.datetime.now()
140141
if publish:
141142
speculative_hello = _is_speculative_authenticate(name, spec)

0 commit comments

Comments
 (0)