aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/server/process.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-19 12:26:25 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-23 11:57:58 +0100
commit2ce9055e4fca3bfbdf8769d7a98650b4c2268887 (patch)
treebbd63ba73d9dc585a7c068afab3c4647b82e3e42 /bitbake/lib/bb/server/process.py
parentc6918b62fd59e6d03c989b6c1546b895cfca05b4 (diff)
downloadopenembedded-core-contrib-2ce9055e4fca3bfbdf8769d7a98650b4c2268887.tar.gz
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>
Diffstat (limited to 'bitbake/lib/bb/server/process.py')
-rw-r--r--bitbake/lib/bb/server/process.py5
1 files changed, 3 insertions, 2 deletions
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