1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-31 00:39:46 +00:00

bitbake: server/process: Don't log BBHandledException

If we see a BBHandledException in the idle handler, the understanding
is the system handled it, printing a log and traceback is just confusing.

Therefore only print these in the cases where its an unknown/unhandled
exception.

(Bitbake rev: d88ecc2bc44dce8fd92ca3a2c0fd4124a5e464fa)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2015-06-19 12:26:25 +01:00
parent c6918b62fd
commit 2ce9055e4f
+3 -2
View File
@@ -144,8 +144,9 @@ class ProcessServer(Process, BaseImplServer):
fds = fds + retval fds = fds + retval
except SystemExit: except SystemExit:
raise raise
except Exception: except Exception as exc:
logger.exception('Running idle function') if not isinstance(exc, bb.BBHandledException):
logger.exception('Running idle function')
del self._idlefuns[function] del self._idlefuns[function]
self.quit = True self.quit = True