Skip to content

Commit 0c4350e

Browse files
committed
testing
1 parent c3a5619 commit 0c4350e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pymongo/asynchronous/mongo_client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2567,7 +2567,10 @@ async def run(self) -> T:
25672567
try:
25682568
if self._operation in (_Op.LIST_COLLECTIONS, _Op.INSERT):
25692569
print(f"Retryable read for {self._operation}")
2570-
return await self._read() if self._is_read else await self._write()
2570+
res = await self._read() if self._is_read else await self._write()
2571+
if self._operation in (_Op.LIST_COLLECTIONS, _Op.INSERT):
2572+
print(f"Result for {self._operation}: {res}")
2573+
return res
25712574
except ServerSelectionTimeoutError:
25722575
# The application may think the write was never attempted
25732576
# if we raise ServerSelectionTimeoutError on the retry

0 commit comments

Comments
 (0)