summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/prserv/serv.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/prserv/serv.py b/bitbake/lib/prserv/serv.py
index 81b4f8d069..781f0545d6 100644
--- a/bitbake/lib/prserv/serv.py
+++ b/bitbake/lib/prserv/serv.py
@@ -143,6 +143,11 @@ class PRServer(SimpleXMLRPCServer):
143 os.dup2(so.fileno(),sys.stdout.fileno()) 143 os.dup2(so.fileno(),sys.stdout.fileno())
144 os.dup2(se.fileno(),sys.stderr.fileno()) 144 os.dup2(se.fileno(),sys.stderr.fileno())
145 145
146 # Clear out all log handlers prior to the fork() to avoid calling
147 # event handlers not part of the PRserver
148 for logger_iter in logging.Logger.manager.loggerDict.keys():
149 logger_iter.handlers = []
150
146 # Ensure logging makes it to the logfile 151 # Ensure logging makes it to the logfile
147 streamhandler = logging.StreamHandler() 152 streamhandler = logging.StreamHandler()
148 streamhandler.setLevel(logging.DEBUG) 153 streamhandler.setLevel(logging.DEBUG)