diff options
author | Chris Larson <chris_larson@mentor.com> | 2010-06-10 10:35:31 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:33 +0000 |
commit | ecc68fa4fbb579e97ea45156e79a293b073697a0 (patch) | |
tree | 6d08682e43476e37ccf48ee14c8d81e208d1c897 /bitbake/lib/bb/parse/__init__.py | |
parent | d3a45c7d41a88d79389fc40eb68816e4939fb6f9 (diff) | |
download | poky-ecc68fa4fbb579e97ea45156e79a293b073697a0.tar.gz |
Switch bitbake internals to use logging directly rather than bb.msg
We use a custom Logger subclass for our loggers
This logger provides:
- 'debug' method which accepts a debug level
- 'plain' method which bypasses log formatting
- 'verbose' method which is more detail than info, but less than debug
(Bitbake rev: 3b2c1fe5ca56daebb24073a9dd45723d3efd2a8d)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/parse/__init__.py')
-rw-r--r-- | bitbake/lib/bb/parse/__init__.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bitbake/lib/bb/parse/__init__.py b/bitbake/lib/bb/parse/__init__.py index da160ceb27..f9517f03f2 100644 --- a/bitbake/lib/bb/parse/__init__.py +++ b/bitbake/lib/bb/parse/__init__.py | |||
@@ -26,9 +26,14 @@ File parsers for the BitBake build tools. | |||
26 | 26 | ||
27 | handlers = [] | 27 | handlers = [] |
28 | 28 | ||
29 | import bb, os | 29 | import os |
30 | import logging | ||
31 | import bb | ||
30 | import bb.utils | 32 | import bb.utils |
31 | import bb.siggen | 33 | import bb.siggen |
34 | import bb.utils | ||
35 | |||
36 | logger = logging.getLogger("BitBake.Parsing") | ||
32 | 37 | ||
33 | class ParseError(Exception): | 38 | class ParseError(Exception): |
34 | """Exception raised when parsing fails""" | 39 | """Exception raised when parsing fails""" |
@@ -91,7 +96,7 @@ def resolve_file(fn, d): | |||
91 | raise IOError("file %s not found in %s" % (fn, bbpath)) | 96 | raise IOError("file %s not found in %s" % (fn, bbpath)) |
92 | fn = newfn | 97 | fn = newfn |
93 | 98 | ||
94 | bb.msg.debug(2, bb.msg.domain.Parsing, "LOAD %s" % fn) | 99 | logger.debug(2, "LOAD %s", fn) |
95 | return fn | 100 | return fn |
96 | 101 | ||
97 | # Used by OpenEmbedded metadata | 102 | # Used by OpenEmbedded metadata |