88
88
_async_create_lock ,
89
89
_release_locks ,
90
90
)
91
- from pymongo .logger import _CLIENT_LOGGER , _log_or_warn
91
+ from pymongo .logger import _CLIENT_LOGGER , _log_client_error , _log_or_warn
92
92
from pymongo .message import _CursorAddress , _GetMore , _Query
93
93
from pymongo .monitoring import ConnectionClosedReason
94
94
from pymongo .operations import (
@@ -2049,7 +2049,7 @@ async def _process_kill_cursors(self) -> None:
2049
2049
# can be caught in _process_periodic_tasks
2050
2050
raise
2051
2051
else :
2052
- helpers_shared . _handle_exception ()
2052
+ _log_client_error ()
2053
2053
2054
2054
# Don't re-open topology if it's closed and there's no pending cursors.
2055
2055
if address_to_cursor_ids :
@@ -2061,7 +2061,7 @@ async def _process_kill_cursors(self) -> None:
2061
2061
if isinstance (exc , InvalidOperation ) and self ._topology ._closed :
2062
2062
raise
2063
2063
else :
2064
- helpers_shared . _handle_exception ()
2064
+ _log_client_error ()
2065
2065
2066
2066
# This method is run periodically by a background thread.
2067
2067
async def _process_periodic_tasks (self ) -> None :
@@ -2075,7 +2075,7 @@ async def _process_periodic_tasks(self) -> None:
2075
2075
if isinstance (exc , InvalidOperation ) and self ._topology ._closed :
2076
2076
return
2077
2077
else :
2078
- helpers_shared . _handle_exception ()
2078
+ _log_client_error ()
2079
2079
2080
2080
def _return_server_session (
2081
2081
self , server_session : Union [_ServerSession , _EmptyServerSession ]
0 commit comments