summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/server
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/server')
-rw-r--r--bitbake/lib/bb/server/process.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py
index a0955722e3..6127fd40e6 100644
--- a/bitbake/lib/bb/server/process.py
+++ b/bitbake/lib/bb/server/process.py
@@ -26,6 +26,7 @@ import errno
26import re 26import re
27import datetime 27import datetime
28import pickle 28import pickle
29import traceback
29import bb.server.xmlrpcserver 30import bb.server.xmlrpcserver
30from bb import daemonize 31from bb import daemonize
31from multiprocessing import queues 32from multiprocessing import queues
@@ -217,8 +218,9 @@ class ProcessServer():
217 self.command_channel_reply.send(self.cooker.command.runCommand(command)) 218 self.command_channel_reply.send(self.cooker.command.runCommand(command))
218 serverlog("Command Completed") 219 serverlog("Command Completed")
219 except Exception as e: 220 except Exception as e:
220 serverlog('Exception in server main event loop running command %s (%s)' % (command, str(e))) 221 stack = traceback.format_exc()
221 logger.exception('Exception in server main event loop running command %s (%s)' % (command, str(e))) 222 serverlog('Exception in server main event loop running command %s (%s)' % (command, stack))
223 logger.exception('Exception in server main event loop running command %s (%s)' % (command, stack))
222 224
223 if self.xmlrpc in ready: 225 if self.xmlrpc in ready:
224 self.xmlrpc.handle_requests() 226 self.xmlrpc.handle_requests()