Skip to content

Commit 02cf254

Browse files
committed
šŸ› Fix an intermittent stack overflow caused by Twisted also capturing output.
Thanks to @glyph for helping track down the issue.
1 parent 282db54 commit 02cf254

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ā€Žsrc/kubernetes_wsgi/server.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ def serve(
5858
# Start logging.
5959
logging.basicConfig(level=logging.INFO)
6060
observers = [STDLibLogObserver()]
61-
logger.globalLogBeginner.beginLoggingTo(observers)
61+
logger.globalLogBeginner.beginLoggingTo(
62+
observers, redirectStandardIO=False
63+
)
6264

6365
# Create the server.
6466
pool = threadpool.ThreadPool()

0 commit comments

Comments
Ā (0)