summaryrefslogtreecommitdiffstats
path: root/lib/bb/server/process.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-31 08:55:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-31 08:59:56 +0100
commit10a6a48c0c5a2fe2051e90143e66075356853971 (patch)
treea555c3a5b5fd507651f4b777ccf06e667fc5e13f /lib/bb/server/process.py
parent974281ed72d8366baa16ee85f7e93970689b5956 (diff)
downloadbitbake-contrib-10a6a48c0c5a2fe2051e90143e66075356853971.tar.gz
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@linuxfoundation.org>
Diffstat (limited to 'lib/bb/server/process.py')
-rw-r--r--lib/bb/server/process.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index aefabbed0..bfd6404b7 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)