summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2013-08-27 21:20:55 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-28 09:29:46 +0100
commit84708a45247fcdd08212b479a0b051281bd41204 (patch)
tree753ea6bf15334d6e2f6027ab879267d8e11dd375
parent4fd453ef7cd2e7e2b1d72284440dac574603ed27 (diff)
downloadast2050-yocto-poky-84708a45247fcdd08212b479a0b051281bd41204.zip
ast2050-yocto-poky-84708a45247fcdd08212b479a0b051281bd41204.tar.gz
bitbake: serv.py: Fix regression from 972bc43e6d5b
commit 972bc43e6d5b1207b944b3baa8f9805adb35dda7 (serv.py: Fix hang when spawned dynamically with bitbake) introduced a regression, because the wrong patch was submitted. The syntax was incorrect in the original patch. The logger iterator must be used with a call to getLogger(). [YOCTO #5059] (Bitbake rev: 85fed8acc3af3e15bf119db2f51c486a9de3646b) Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/prserv/serv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/prserv/serv.py b/bitbake/lib/prserv/serv.py
index 781f054..6d0c718 100644
--- a/bitbake/lib/prserv/serv.py
+++ b/bitbake/lib/prserv/serv.py
@@ -146,7 +146,7 @@ class PRServer(SimpleXMLRPCServer):
# Clear out all log handlers prior to the fork() to avoid calling
# event handlers not part of the PRserver
for logger_iter in logging.Logger.manager.loggerDict.keys():
- logger_iter.handlers = []
+ logging.getLogger(logger_iter).handlers = []
# Ensure logging makes it to the logfile
streamhandler = logging.StreamHandler()
OpenPOWER on IntegriCloud