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/cookerdata.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/cookerdata.py')
-rw-r--r-- | bitbake/lib/bb/cookerdata.py | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py index 6bf411bcd2..f43610e7f8 100644 --- a/bitbake/lib/bb/cookerdata.py +++ b/bitbake/lib/bb/cookerdata.py | |||
@@ -58,13 +58,15 @@ class ConfigParameters(object): | |||
58 | def updateToServer(self, server, environment): | 58 | def updateToServer(self, server, environment): |
59 | options = {} | 59 | options = {} |
60 | for o in ["abort", "force", "invalidate_stamp", | 60 | for o in ["abort", "force", "invalidate_stamp", |
61 | "debug", "dry_run", "dump_signatures", | 61 | "dry_run", "dump_signatures", |
62 | "debug_domains", "extra_assume_provided", "profile", | 62 | "extra_assume_provided", "profile", |
63 | "prefile", "postfile", "server_timeout"]: | 63 | "prefile", "postfile", "server_timeout"]: |
64 | options[o] = getattr(self.options, o) | 64 | options[o] = getattr(self.options, o) |
65 | 65 | ||
66 | options['build_verbose_shell'] = self.options.verbose | 66 | options['build_verbose_shell'] = self.options.verbose |
67 | options['build_verbose_stdout'] = self.options.verbose | 67 | options['build_verbose_stdout'] = self.options.verbose |
68 | options['default_loglevel'] = bb.msg.loggerDefaultLogLevel | ||
69 | options['debug_domains'] = bb.msg.loggerDefaultDomains | ||
68 | 70 | ||
69 | ret, error = server.runCommand(["updateConfig", options, environment, sys.argv]) | 71 | ret, error = server.runCommand(["updateConfig", options, environment, sys.argv]) |
70 | if error: | 72 | if error: |
@@ -114,11 +116,11 @@ class CookerConfiguration(object): | |||
114 | """ | 116 | """ |
115 | 117 | ||
116 | def __init__(self): | 118 | def __init__(self): |
117 | self.debug_domains = [] | 119 | self.debug_domains = bb.msg.loggerDefaultDomains |
120 | self.default_loglevel = bb.msg.loggerDefaultLogLevel | ||
118 | self.extra_assume_provided = [] | 121 | self.extra_assume_provided = [] |
119 | self.prefile = [] | 122 | self.prefile = [] |
120 | self.postfile = [] | 123 | self.postfile = [] |
121 | self.debug = 0 | ||
122 | self.cmd = None | 124 | self.cmd = None |
123 | self.abort = True | 125 | self.abort = True |
124 | self.force = False | 126 | self.force = False |