diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-24 12:41:53 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-25 18:14:53 +0100 |
commit | 6def374f134e1d1e46c7e21e0feb1d00ffe5d3e9 (patch) | |
tree | d2fb0df9b5f6cfdb769e82b6944da15a51e5c7ea /bitbake/lib/bb/main.py | |
parent | 4c94d36022727fa5b640b73b3f2bc82a58443a33 (diff) | |
download | poky-6def374f134e1d1e46c7e21e0feb1d00ffe5d3e9.tar.gz |
bitbake: 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.
(Bitbake rev: f0535beecc692a6213be2a22f9eef5956450ecf8)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/main.py')
-rwxr-xr-x | bitbake/lib/bb/main.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/main.py b/bitbake/lib/bb/main.py index af2880f8d5..e483cce1ae 100755 --- a/bitbake/lib/bb/main.py +++ b/bitbake/lib/bb/main.py | |||
@@ -357,11 +357,11 @@ def bitbake_main(configParams, configuration): | |||
357 | 357 | ||
358 | if "BBDEBUG" in os.environ: | 358 | if "BBDEBUG" in os.environ: |
359 | level = int(os.environ["BBDEBUG"]) | 359 | level = int(os.environ["BBDEBUG"]) |
360 | if level > configuration.debug: | 360 | if level > configParams.debug: |
361 | configuration.debug = level | 361 | configParams.debug = level |
362 | 362 | ||
363 | bb.msg.init_msgconfig(configParams.verbose, configuration.debug, | 363 | bb.msg.init_msgconfig(configParams.verbose, configParams.debug, |
364 | configuration.debug_domains) | 364 | configParams.debug_domains) |
365 | 365 | ||
366 | server_connection, ui_module = setup_bitbake(configParams, configuration) | 366 | server_connection, ui_module = setup_bitbake(configParams, configuration) |
367 | # No server connection | 367 | # No server connection |