diff options
-rwxr-xr-x | bitbake/bin/bitbake | 5 | ||||
-rw-r--r-- | bitbake/lib/bb/__init__.py | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/bitbake/bin/bitbake b/bitbake/bin/bitbake index 324ee4fa53..e86d59bd62 100755 --- a/bitbake/bin/bitbake +++ b/bitbake/bin/bitbake | |||
@@ -214,6 +214,11 @@ Default BBFILES are the .bb files in the current directory.""") | |||
214 | if configuration.bind and configuration.servertype != "xmlrpc": | 214 | if configuration.bind and configuration.servertype != "xmlrpc": |
215 | sys.exit("FATAL: If '-B' or '--bind' is defined, we must set the servertype as 'xmlrpc'.\n") | 215 | sys.exit("FATAL: If '-B' or '--bind' is defined, we must set the servertype as 'xmlrpc'.\n") |
216 | 216 | ||
217 | if "BBDEBUG" in os.environ: | ||
218 | level = int(os.environ["BBDEBUG"]) | ||
219 | if level > configuration.debug: | ||
220 | configuration.debug = level | ||
221 | |||
217 | bb.msg.init_msgconfig(configuration.verbose, configuration.debug, | 222 | bb.msg.init_msgconfig(configuration.verbose, configuration.debug, |
218 | configuration.debug_domains) | 223 | configuration.debug_domains) |
219 | 224 | ||
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. |
75 | import bb.msg | 75 | import bb.msg |
76 | 76 | ||
77 | if "BBDEBUG" in os.environ: | ||
78 | level = int(os.environ["BBDEBUG"]) | ||
79 | if level: | ||
80 | bb.msg.set_debug_level(level) | ||
81 | |||
82 | from bb import fetch2 as fetch | 77 | from bb import fetch2 as fetch |
83 | sys.modules['bb.fetch'] = sys.modules['bb.fetch2'] | 78 | sys.modules['bb.fetch'] = sys.modules['bb.fetch2'] |
84 | 79 | ||