aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bb/main.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-08-24 12:41:53 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-08-24 17:47:32 +0100
commitf0535beecc692a6213be2a22f9eef5956450ecf8 (patch)
tree4e87dc9b4a2d134c3215c2d25e8138851ad6ba4e /lib/bb/main.py
parent423c046f2173aaff3072dc3d0882d01b8a0b0212 (diff)
downloadbitbake-f0535beecc692a6213be2a22f9eef5956450ecf8.tar.gz
cooker/cookerdata/main: Improve loglevel handling
Rather than passing debug/verbose/debug_domains around, pass the computed output of these. Ensure that the cooker sets the levels to match the levels currently set in the UI and generally try and make it easier to understand what the code is doing. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/main.py')
-rwxr-xr-xlib/bb/main.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bb/main.py b/lib/bb/main.py
index af2880f8d..e483cce1a 100755
--- a/lib/bb/main.py
+++ b/lib/bb/main.py
@@ -357,11 +357,11 @@ def bitbake_main(configParams, configuration):
if "BBDEBUG" in os.environ:
level = int(os.environ["BBDEBUG"])
- if level > configuration.debug:
- configuration.debug = level
+ if level > configParams.debug:
+ configParams.debug = level
- bb.msg.init_msgconfig(configParams.verbose, configuration.debug,
- configuration.debug_domains)
+ bb.msg.init_msgconfig(configParams.verbose, configParams.debug,
+ configParams.debug_domains)
server_connection, ui_module = setup_bitbake(configParams, configuration)
# No server connection