Skip to contentSkip to conversation

server/process: Don't log BBHandledException

PATCH New Richard Purdie 1 participant 1 message Jun 19, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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/lib/bb/server/process.py +3 -2
index c9286dd..ef3ee57 100644
@@ -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