]> code.ossystems Code Review - openembedded-core.git/commit
Use logging in the knotty ui, and pass the log record across directly
authorChris Larson <chris_larson@mentor.com>
Thu, 10 Jun 2010 15:05:52 +0000 (08:05 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 4 Jan 2011 14:46:33 +0000 (14:46 +0000)
commitd3a45c7d41a88d79389fc40eb68816e4939fb6f9
tree443e2828e6d5e86f59b8b238607ef38646c1f23f
parent4855548ffbbb6b972f6b71d61d2b29e4758acdc7
Use logging in the knotty ui, and pass the log record across directly

This kills firing of Msg* events in favor of just passing along LogRecord
objects.  These objects hold more than just level and message, but can also
have exception information, so the UI can decide what to do with that.

As an aside, when using the 'none' server, this results in the log messages in
the server being displayed directly via the logging module and the UI's
handler, rather than going through the server's event queue.  As a result of
doing it this way, we have to override the event handlers of the base logger
when spawning a worker process, to ensure they log via events rather than
directly.

(Bitbake rev: c23c015cf8af1868faf293b19b80a5faf7e736a5)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/bin/bitbake
bitbake/lib/bb/event.py
bitbake/lib/bb/runqueue.py
bitbake/lib/bb/ui/knotty.py