aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-10-11 13:43:17 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-10-11 13:43:19 +0100
commit04d3a79226c9ea448b22f4efbab33876a72c9bdb (patch)
treeb26a583bd4007ef0e11a5ac302c4b2746b3ea6d8
parent64ae9d7e2fad804dd9e12706c6d76b4b22f9586b (diff)
downloadbitbake-contrib-04d3a79226c9ea448b22f4efbab33876a72c9bdb.tar.gz
process: Show command exceptions in the server log as well
There are autobuilder logs where the server commands are failing but we have no debug info in the server log. Improve this to try and understand what is failing. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/server/process.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index c7cb34f0c..b27b4aefe 100644
--- a/lib/bb/server/process.py
+++ b/lib/bb/server/process.py
@@ -217,6 +217,7 @@ class ProcessServer():
self.command_channel_reply.send(self.cooker.command.runCommand(command))
serverlog("Command Completed")
except Exception as e:
+ serverlog('Exception in server main event loop running command %s (%s)' % (command, str(e)))
logger.exception('Exception in server main event loop running command %s (%s)' % (command, str(e)))
if self.xmlrpc in ready: