summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-03-19 19:01:47 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-25 12:39:50 +0000
commit1385f2877090b23b11ac5d47f06ae5df2d1ed655 (patch)
tree9fbdd47f479e377f6956659e1006acf8c5150af1
parent4e186596338af52bf720dcbbdd3a07b722cf9575 (diff)
downloadpoky-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>
-rw-r--r--bitbake/lib/bb/ui/uievent.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/ui/uievent.py b/bitbake/lib/bb/ui/uievent.py
index c6b100c840..7fc50c759a 100644
--- a/bitbake/lib/bb/ui/uievent.py
+++ b/bitbake/lib/bb/ui/uievent.py
@@ -106,7 +106,12 @@ class BBUIEventQueue:
106 106
107 self.server.timeout = 1 107 self.server.timeout = 1
108 while not self.server.quit: 108 while not self.server.quit:
109 self.server.handle_request() 109 try:
110 self.server.handle_request()
111 except Exception as e:
112 import traceback
113 logger.error("BBUIEventQueue.startCallbackHandler: Exception while trying to handle request: %s\n%s" % (e, traceback.format_exc(e)))
114
110 self.server.server_close() 115 self.server.server_close()
111 116
112 def system_quit( self ): 117 def system_quit( self ):