From 2ce9055e4fca3bfbdf8769d7a98650b4c2268887 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 19 Jun 2015 12:26:25 +0100 Subject: 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 --- bitbake/lib/bb/server/process.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/server/process.py') diff --git a/bitbake/lib/bb/server/process.py b/bitbake/lib/bb/server/process.py index c9286ddba7..ef3ee57aa4 100644 --- a/bitbake/lib/bb/server/process.py +++ b/bitbake/lib/bb/server/process.py @@ -144,8 +144,9 @@ class ProcessServer(Process, BaseImplServer): fds = fds + retval except SystemExit: raise - except Exception: - logger.exception('Running idle function') + except Exception as exc: + if not isinstance(exc, bb.BBHandledException): + logger.exception('Running idle function') del self._idlefuns[function] self.quit = True -- cgit v1.2.3-54-g00ecf