[oe-commits] [bitbake] 02/02: process: Add some extra server startup logs

git at git.openembedded.org git at git.openembedded.org
Mon Jul 31 08:01:18 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 10a6a48c0c5a2fe2051e90143e66075356853971
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Mon Jul 31 08:55:15 2017 +0100

    process: Add some extra server startup logs
    
    We have cases where the server is being started but we're not seeing any messages
    from it. Add some earlier logging so we can try and better understand where
    issues may be occurring.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/server/process.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index aefabbe..bfd6404 100644
--- a/lib/bb/server/process.py
+++ b/lib/bb/server/process.py
@@ -100,7 +100,8 @@ class ProcessServer(multiprocessing.Process):
             else:
                 self.bitbake_lock.write("%s\n" % (os.getpid()))
             self.bitbake_lock.flush()
-        except:
+        except Exception as e:
+            print("Error writing to lock file: %s" % str(e))
             pass
 
         if self.cooker.configuration.profile:
@@ -132,6 +133,7 @@ class ProcessServer(multiprocessing.Process):
         fds = [self.sock]
         if self.xmlrpc:
             fds.append(self.xmlrpc)
+        print("Entering server connection loop")
         while not self.quit:
             if self.sock in ready:
                 self.controllersock, address = self.sock.accept()
@@ -388,6 +390,7 @@ class BitBakeServer(object):
         os.close(self.readypipein)
 
     def _startServer(self):
+        print("Starting bitbake server pid %d" % os.getpid())
         server = ProcessServer(self.bitbake_lock, self.sock, self.sockname)
         self.configuration.setServerRegIdleCallback(server.register_idle_function)
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list