[gnome-continuous-yocto/gnomeostree-3.28-rocko: 7060/8267] bitbake: process: Add some extra server startup logs



commit 3010e4e7cf120f68afef4081bb1aa1733800589e
Author: Richard Purdie <richard purdie linuxfoundation org>
Date:   Mon Jul 31 08:55:15 2017 +0100

    bitbake: 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.
    
    (Bitbake rev: 10a6a48c0c5a2fe2051e90143e66075356853971)
    
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 bitbake/lib/bb/server/process.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py
index aefabbe..bfd6404 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/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)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]