summaryrefslogtreecommitdiffstats
path: root/bitbake
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 /bitbake
parent4fd453ef7cd2e7e2b1d72284440dac574603ed27 (diff)
downloadpoky-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>
Diffstat (limited to 'bitbake')
-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 781f0545d6..6d0c7188ee 100644
--- a/bitbake/lib/prserv/serv.py
+++ b/bitbake/lib/prserv/serv.py
@@ -146,7 +146,7 @@ class PRServer(SimpleXMLRPCServer):
146 # Clear out all log handlers prior to the fork() to avoid calling 146 # Clear out all log handlers prior to the fork() to avoid calling
147 # event handlers not part of the PRserver 147 # event handlers not part of the PRserver
148 for logger_iter in logging.Logger.manager.loggerDict.keys(): 148 for logger_iter in logging.Logger.manager.loggerDict.keys():
149 logger_iter.handlers = [] 149 logging.getLogger(logger_iter).handlers = []
150 150
151 # Ensure logging makes it to the logfile 151 # Ensure logging makes it to the logfile
152 streamhandler = logging.StreamHandler() 152 streamhandler = logging.StreamHandler()