diff options
author | Joshua Lock <josh@linux.intel.com> | 2011-09-02 16:39:23 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-09-05 20:16:07 +0100 |
commit | b0cce5b52a20c0dad5ec0c4053f437cae89b6137 (patch) | |
tree | c842bd28f14d4869e01bf45c02c706bb901a69bd /lib | |
parent | 3157967d08266b8d1ac563ba609ac3027b60d040 (diff) | |
download | bitbake-b0cce5b52a20c0dad5ec0c4053f437cae89b6137.tar.gz |
ui/crumbs/runningbuild: mask run_buildstats failure
The buildstats handler causes an exception with: "'NoneType' object has no
attribute 'startswith'" early a build via hob, leaving a glaring red row
which means nothing to the user.
Mask this error until such a time as we have opportunity to correctly
diagnose and fix the root problem.
Workaround fix for [YOCTO #1433]
Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/ui/crumbs/runningbuild.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bb/ui/crumbs/runningbuild.py b/lib/bb/ui/crumbs/runningbuild.py index 97d1ebdd6..247ed5d5a 100644 --- a/lib/bb/ui/crumbs/runningbuild.py +++ b/lib/bb/ui/crumbs/runningbuild.py @@ -91,6 +91,12 @@ class RunningBuild (gobject.GObject): parent = self.tasks_to_iter[(package, task)] if(isinstance(event, logging.LogRecord)): + # FIXME: this is a hack! More info in Yocto #1433 + # http://bugzilla.pokylinux.org/show_bug.cgi?id=1433, temporarily + # mask the error message as it's not informative for the user. + if event.msg.startswith("Execution of event handler 'run_buildstats' failed"): + return + if (event.levelno < logging.INFO or event.msg.startswith("Running task")): return # don't add these to the list |