Merge "Turn off logging.logThreads when monkey-patched"

This commit is contained in:
Zuul 2021-01-15 20:48:19 +00:00 committed by Gerrit Code Review
commit 267d432f86
1 changed files with 3 additions and 0 deletions

View File

@ -554,6 +554,9 @@ def eventlet_monkey_patch():
# if thread is monkey-patched.
eventlet.patcher.monkey_patch(all=False, socket=True, select=True,
thread=True)
# Trying to log threads while monkey-patched can lead to deadlocks; see
# https://bugs.launchpad.net/swift/+bug/1895739
logging.logThreads = 0
def noop_libc_function(*args):