summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-14 12:30:27 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-14 12:36:04 +0000
commit5d968368bc8b5813b0579910e23bd50fa6bd874b (patch)
tree8918d60950ae0df43ee16cd887a3084e9fec1455 /bitbake/lib
parentdc637ae860f57161c97b04d3e91612d3e1600f37 (diff)
downloadpoky-5d968368bc8b5813b0579910e23bd50fa6bd874b.tar.gz
bitbake: 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] (Bitbake rev: 3a1b75037fe1e5282ffd40b037e93353405faa45) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/__init__.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py
index 660fd5bf5a..faa94e6c36 100644
--- a/bitbake/lib/bb/__init__.py
+++ b/bitbake/lib/bb/__init__.py
@@ -74,11 +74,6 @@ logger.setLevel(logging.DEBUG - 2)
74# can result in construction of the various loggers. 74# can result in construction of the various loggers.
75import bb.msg 75import bb.msg
76 76
77if "BBDEBUG" in os.environ:
78 level = int(os.environ["BBDEBUG"])
79 if level:
80 bb.msg.set_debug_level(level)
81
82from bb import fetch2 as fetch 77from bb import fetch2 as fetch
83sys.modules['bb.fetch'] = sys.modules['bb.fetch2'] 78sys.modules['bb.fetch'] = sys.modules['bb.fetch2']
84 79