From 38393fb3c2f9639809a05158a27b6a5e5e840929 Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Tue, 16 Aug 2011 13:56:37 -0700 Subject: bb/ui/crumbs/runningbuild: reduce number of messages after recent msg change The recent change to the message module to remove custom logging domains resulted in an increased number of messages being displayed in the running build view, ignore all messages lower than log level INFO. (Bitbake rev: a12da000a8e4138fbdfd77f9c49b11fc69a315e1) Signed-off-by: Joshua Lock Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/crumbs/runningbuild.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bitbake/lib/bb/ui/crumbs/runningbuild.py b/bitbake/lib/bb/ui/crumbs/runningbuild.py index bf72e2a725..f78969cc04 100644 --- a/bitbake/lib/bb/ui/crumbs/runningbuild.py +++ b/bitbake/lib/bb/ui/crumbs/runningbuild.py @@ -91,7 +91,8 @@ class RunningBuild (gobject.GObject): parent = self.tasks_to_iter[(package, task)] if(isinstance(event, logging.LogRecord)): - if (event.msg.startswith ("Running task")): + if (event.levelno < logging.INFO or + event.msg.startswith("Running task")): return # don't add these to the list if event.levelno >= logging.ERROR: -- cgit v1.2.3-54-g00ecf