From 47ca82397bc395b598c6b68b24cdee9e0d8a76d8 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Wed, 9 Jun 2010 16:17:29 -0700 Subject: Use the python logging module under the hood for bb.msg Signed-off-by: Chris Larson --- bin/bitbake | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/bitbake b/bin/bitbake index 116b133c7..06198c45a 100755 --- a/bin/bitbake +++ b/bin/bitbake @@ -23,7 +23,7 @@ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. import os -import sys +import sys, logging sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), 'lib')) @@ -31,6 +31,7 @@ import optparse import warnings from traceback import format_exception import bb +from bb import event import bb.msg from bb import cooker from bb import ui @@ -39,7 +40,7 @@ from bb.server import none #from bb.server import xmlrpc __version__ = "1.11.0" - +logger = logging.getLogger("BitBake") #============================================================================# @@ -159,6 +160,8 @@ Default BBFILES are the .bb files in the current directory.""") configuration = BBConfiguration(options) configuration.pkgs_to_build.extend(args[1:]) + logger.addHandler(event.LogHandler()) + #server = bb.server.xmlrpc server = bb.server.none -- cgit 1.2.3-korg