diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-03-19 19:01:47 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-25 12:39:50 +0000 |
commit | 1385f2877090b23b11ac5d47f06ae5df2d1ed655 (patch) | |
tree | 9fbdd47f479e377f6956659e1006acf8c5150af1 /bitbake/lib/bb/ui | |
parent | 4e186596338af52bf720dcbbdd3a07b722cf9575 (diff) | |
download | ast2050-yocto-poky-1385f2877090b23b11ac5d47f06ae5df2d1ed655.zip ast2050-yocto-poky-1385f2877090b23b11ac5d47f06ae5df2d1ed655.tar.gz |
bitbake: uievent: catch and log exceptions in receiving events
This patch prevents tracebacks and instead logs exceptions
that may happen during event processing.
[YOCTO #7216]
(Bitbake rev: 0412631fb4a15ff42bf5ee46a77920fa558ae358)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/ui')
-rw-r--r-- | bitbake/lib/bb/ui/uievent.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/uievent.py b/bitbake/lib/bb/ui/uievent.py index c6b100c..7fc50c7 100644 --- a/bitbake/lib/bb/ui/uievent.py +++ b/bitbake/lib/bb/ui/uievent.py @@ -106,7 +106,12 @@ class BBUIEventQueue: self.server.timeout = 1 while not self.server.quit: - self.server.handle_request() + try: + self.server.handle_request() + except Exception as e: + import traceback + logger.error("BBUIEventQueue.startCallbackHandler: Exception while trying to handle request: %s\n%s" % (e, traceback.format_exc(e))) + self.server.server_close() def system_quit( self ): |