diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-14 12:30:27 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-12-14 12:35:38 +0000 |
commit | 3a1b75037fe1e5282ffd40b037e93353405faa45 (patch) | |
tree | bed7e6e0d22a098224305331340cbcdd2ce84951 /lib | |
parent | c6211291ae07410832031a5274690437cc2b09a6 (diff) | |
download | bitbake-3a1b75037fe1e5282ffd40b037e93353405faa45.tar.gz |
bin/bitbake, bb/__init__: Move BBDEBUG handling to bin/bitbake
The method this older code was accessing doesn't exist. A library shouldn't
be changing behaviour based on the environment anyway when sepcific function
calls exist to correctly setup the logging. Fix the crash if BBDEBUG was used
by moving the code to bin/bitbake.
[YOCTO #3319]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/__init__.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/bb/__init__.py b/lib/bb/__init__.py index 660fd5bf5..faa94e6c3 100644 --- a/lib/bb/__init__.py +++ b/lib/bb/__init__.py @@ -74,11 +74,6 @@ logger.setLevel(logging.DEBUG - 2) # can result in construction of the various loggers. import bb.msg -if "BBDEBUG" in os.environ: - level = int(os.environ["BBDEBUG"]) - if level: - bb.msg.set_debug_level(level) - from bb import fetch2 as fetch sys.modules['bb.fetch'] = sys.modules['bb.fetch2'] |