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:
committed by
Richard Purdie
parent
3e57e63b2d
commit
4855548ffb
+5
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user