File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2586,7 +2586,7 @@ async def run(self) -> T:
2586
2586
raise
2587
2587
except PyMongoError as exc :
2588
2588
if self ._operation in (_Op .LIST_COLLECTIONS , _Op .INSERT ):
2589
- print (f"Error for { self ._operation } : { exc } " )
2589
+ print (f"Error for { self ._operation } : { exc } , { traceback . print_exception ( exc ) } " )
2590
2590
# Execute specialized catch on read
2591
2591
if self ._is_read :
2592
2592
if isinstance (exc , (ConnectionFailure , OperationFailure )):
@@ -2726,8 +2726,8 @@ async def _read(self) -> T:
2726
2726
"""
2727
2727
print (f"Calling _read for { self ._func .__name__ } " )
2728
2728
self ._server = await self ._get_server ()
2729
- print (f"Got server for _read for { self ._func .__name__ } " )
2730
2729
assert self ._read_pref is not None , "Read Preference required on read calls"
2730
+ print (f"Got server for _read for { self ._func .__name__ } " )
2731
2731
async with self ._client ._conn_from_server (self ._read_pref , self ._server , self ._session ) as (
2732
2732
conn ,
2733
2733
read_pref ,
You can’t perform that action at this time.
0 commit comments