diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-19 12:26:25 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-06-23 11:57:58 +0100 |
commit | 2ce9055e4fca3bfbdf8769d7a98650b4c2268887 (patch) | |
tree | bbd63ba73d9dc585a7c068afab3c4647b82e3e42 /bitbake | |
parent | c6918b62fd59e6d03c989b6c1546b895cfca05b4 (diff) | |
download | poky-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')
-rw-r--r-- | bitbake/lib/bb/server/process.py | 5 |
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): | |||
144 | fds = fds + retval | 144 | fds = fds + retval |
145 | except SystemExit: | 145 | except SystemExit: |
146 | raise | 146 | raise |
147 | except Exception: | 147 | except Exception as exc: |
148 | logger.exception('Running idle function') | 148 | if not isinstance(exc, bb.BBHandledException): |
149 | logger.exception('Running idle function') | ||
149 | del self._idlefuns[function] | 150 | del self._idlefuns[function] |
150 | self.quit = True | 151 | self.quit = True |
151 | 152 | ||