File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -2691,10 +2691,12 @@ async def _write(self) -> T:
2691
2691
2692
2692
:return: Output for func()'s call
2693
2693
"""
2694
+ print (f"Calling _write for { self ._func .__name__ } " )
2694
2695
try :
2695
2696
max_wire_version = 0
2696
2697
is_mongos = False
2697
2698
self ._server = await self ._get_server ()
2699
+ print (f"Got server for _write for { self ._func .__name__ } " )
2698
2700
async with self ._client ._checkout (self ._server , self ._session ) as conn :
2699
2701
max_wire_version = conn .max_wire_version
2700
2702
sessions_supported = (
@@ -2710,6 +2712,7 @@ async def _write(self) -> T:
2710
2712
self ._retryable = False
2711
2713
return await self ._func (self ._session , conn , self ._retryable ) # type: ignore
2712
2714
except PyMongoError as exc :
2715
+ print (f"Got error for _write for { self ._func .__name__ } " )
2713
2716
if not self ._retryable :
2714
2717
raise
2715
2718
# Add the RetryableWriteError label, if applicable.
You can’t perform that action at this time.
0 commit comments