diff options
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/server/process.py | 6 |
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 | |||
26 | import re | 26 | import re |
27 | import datetime | 27 | import datetime |
28 | import pickle | 28 | import pickle |
29 | import traceback | ||
29 | import bb.server.xmlrpcserver | 30 | import bb.server.xmlrpcserver |
30 | from bb import daemonize | 31 | from bb import daemonize |
31 | from multiprocessing import queues | 32 | from 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() |