1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

Use the python logging module under the hood for bb.msg

(Bitbake rev: 47ca82397bc395b598c6b68b24cdee9e0d8a76d8)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Chris Larson
2010-06-09 16:17:29 -07:00
committed by Richard Purdie
parent 3e57e63b2d
commit 4855548ffb
6 changed files with 150 additions and 89 deletions
+5 -2
View File
@@ -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")
#============================================================================#
@@ -163,6 +164,8 @@ Default BBFILES are the .bb files in the current directory.""")
configuration.pkgs_to_build.extend(args[1:])
configuration.initial_path = os.environ['PATH']
logger.addHandler(event.LogHandler())
#server = bb.server.xmlrpc
server = bb.server.none