diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-06-09 16:17:29 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:33 +0000 |
commit | 4855548ffbbb6b972f6b71d61d2b29e4758acdc7 (patch) | |
tree | 259485fe325ac4770002b4d8c53288be71bc8fc8 /bitbake/bin | |
parent | 3e57e63b2d16fa3f1ec37a904e8538e00a301fdd (diff) | |
download | poky-4855548ffbbb6b972f6b71d61d2b29e4758acdc7.tar.gz |
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>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-x | bitbake/bin/bitbake | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index 960d8d0bc7..9b2cfdf5c5 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake | |||
@@ -23,7 +23,7 @@ | |||
23 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 23 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
24 | 24 | ||
25 | import os | 25 | import os |
26 | import sys | 26 | import sys, logging |
27 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), | 27 | sys.path.insert(0, os.path.join(os.path.dirname(os.path.dirname(sys.argv[0])), |
28 | 'lib')) | 28 | 'lib')) |
29 | 29 | ||
@@ -31,6 +31,7 @@ import optparse | |||
31 | import warnings | 31 | import warnings |
32 | from traceback import format_exception | 32 | from traceback import format_exception |
33 | import bb | 33 | import bb |
34 | from bb import event | ||
34 | import bb.msg | 35 | import bb.msg |
35 | from bb import cooker | 36 | from bb import cooker |
36 | from bb import ui | 37 | from bb import ui |
@@ -39,7 +40,7 @@ from bb.server import none | |||
39 | #from bb.server import xmlrpc | 40 | #from bb.server import xmlrpc |
40 | 41 | ||
41 | __version__ = "1.11.0" | 42 | __version__ = "1.11.0" |
42 | 43 | logger = logging.getLogger("BitBake") | |
43 | 44 | ||
44 | 45 | ||
45 | #============================================================================# | 46 | #============================================================================# |
@@ -163,6 +164,8 @@ Default BBFILES are the .bb files in the current directory.""") | |||
163 | configuration.pkgs_to_build.extend(args[1:]) | 164 | configuration.pkgs_to_build.extend(args[1:]) |
164 | configuration.initial_path = os.environ['PATH'] | 165 | configuration.initial_path = os.environ['PATH'] |
165 | 166 | ||
167 | logger.addHandler(event.LogHandler()) | ||
168 | |||
166 | #server = bb.server.xmlrpc | 169 | #server = bb.server.xmlrpc |
167 | server = bb.server.none | 170 | server = bb.server.none |
168 | 171 | ||