summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.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-25 18:14:53 +0100
commit6def374f134e1d1e46c7e21e0feb1d00ffe5d3e9 (patch)
treed2fb0df9b5f6cfdb769e82b6944da15a51e5c7ea /bitbake/lib/bb/cooker.py
parent4c94d36022727fa5b640b73b3f2bc82a58443a33 (diff)
downloadpoky-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/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 57caf38c2a..c34de303fb 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -446,7 +446,12 @@ class BBCooker:
446 logger.debug(1, "Marking as dirty due to '%s' option change to '%s'" % (o, options[o])) 446 logger.debug(1, "Marking as dirty due to '%s' option change to '%s'" % (o, options[o]))
447 print("Marking as dirty due to '%s' option change to '%s'" % (o, options[o])) 447 print("Marking as dirty due to '%s' option change to '%s'" % (o, options[o]))
448 clean = False 448 clean = False
449 setattr(self.configuration, o, options[o]) 449 if hasattr(self.configuration, o):
450 setattr(self.configuration, o, options[o])
451
452 bb.msg.loggerDefaultLogLevel = self.configuration.default_loglevel
453 bb.msg.loggerDefaultDomains = self.configuration.debug_domains
454
450 for k in bb.utils.approved_variables(): 455 for k in bb.utils.approved_variables():
451 if k in environment and k not in self.configuration.env: 456 if k in environment and k not in self.configuration.env:
452 logger.debug(1, "Updating new environment variable %s to %s" % (k, environment[k])) 457 logger.debug(1, "Updating new environment variable %s to %s" % (k, environment[k]))