serv.py: Fix regression from 972bc43e6d5b
PATCH 1/1 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]
--- lib/prserv/serv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/prserv/serv.py +1 -1
@@ -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()
Signature · 1 line
1.7.9.5
Quoted 5 lines · Jason Wessel
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 togetLogger().
I was seeing errors like
NOTE: Started PRServer with DBfile: /builds1/angstrom/cache/prserv.sqlite3, IP: 127.0.0.1, PORT: 55073, PID: 20469
ERROR: PRservice 127.0.0.1:55073 not available
Which I narrowed down to 972bc43e6d5b as well.
This patch fixes it.
Quoted 28 lines
[YOCTO #5059]
Signed-off-by Jason Wessel <[email protected]>---
lib/prserv/serv.py| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)lib/prserv/serv.py +1
-1@@ -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()Signature · 6 lines
1.7.9.5 _______________________________________________ bitbake-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/bitbake-devel