Skip to content

Commit df7b264

Browse files
committed
debug
1 parent d8fb4ab commit df7b264

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pymongo/asynchronous/pool.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,7 @@ def _handle_connection_error(self, error: BaseException) -> None:
10371037
# End of file errors are excluded, because the server may have disconnected
10381038
# during the handshake.
10391039
if not isinstance(error.__cause__, ssl.SSLEOFError):
1040+
print("Ignoring root error", error.__cause__, type(error.__cause__)) # noqa: T201
10401041
return
10411042
error._add_error_label("SystemOverloadedError")
10421043
error._add_error_label("RetryableError")

pymongo/synchronous/pool.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,6 +1033,7 @@ def _handle_connection_error(self, error: BaseException) -> None:
10331033
# End of file errors are excluded, because the server may have disconnected
10341034
# during the handshake.
10351035
if not isinstance(error.__cause__, ssl.SSLEOFError):
1036+
print("Ignoring root error", error.__cause__, type(error.__cause__)) # noqa: T201
10361037
return
10371038
error._add_error_label("SystemOverloadedError")
10381039
error._add_error_label("RetryableError")

0 commit comments

Comments
 (0)