Rémi Lapeyre <[email protected]> added the comment:
The following patch fixes the issue and raise RecursionError as expecting
without core dump:
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index b4659af7cc..7457549cb9 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -1094,6 +1094,8 @@ class StreamHandler(Handler):
# issue 35046: merged two stream.writes into one.
stream.write(msg + self.terminator)
self.flush()
+ except RecursionError as e:
+ raise
except Exception:
self.handleError(record)
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue36272>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com