diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-24 12:28:27 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-25 18:14:53 +0100 |
commit | 4c94d36022727fa5b640b73b3f2bc82a58443a33 (patch) | |
tree | 58e5367bdc2a8c1dbf89789705d6f7b7aced0831 /bitbake/lib/bb/msg.py | |
parent | b221b8a657888be605f6c31e6353b10b08a619e6 (diff) | |
download | poky-4c94d36022727fa5b640b73b3f2bc82a58443a33.tar.gz |
bitbake: build/msg: Cleanup verbose option handling
The levels of indirection to set these verbose logging options is rather
crazy. This attempts to turn things into two specific options with
much more specific meanings. For now its all still controlled by the
commandline verbose option and should funciton as previously, with
the addition that the BB_VERBOSE_LOGS option can now be task specific.
(Bitbake rev: 423c046f2173aaff3072dc3d0882d01b8a0b0212)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/msg.py')
-rw-r--r-- | bitbake/lib/bb/msg.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/bitbake/lib/bb/msg.py b/bitbake/lib/bb/msg.py index 2d88c4e72d..1b1a23bb50 100644 --- a/bitbake/lib/bb/msg.py +++ b/bitbake/lib/bb/msg.py | |||
@@ -146,18 +146,12 @@ class LogFilterLTLevel(logging.Filter): | |||
146 | # | 146 | # |
147 | 147 | ||
148 | loggerDefaultLogLevel = BBLogFormatter.NOTE | 148 | loggerDefaultLogLevel = BBLogFormatter.NOTE |
149 | loggerDefaultVerbose = False | ||
150 | loggerVerboseLogs = False | ||
151 | loggerDefaultDomains = {} | 149 | loggerDefaultDomains = {} |
152 | 150 | ||
153 | def init_msgconfig(verbose, debug, debug_domains=None): | 151 | def init_msgconfig(verbose, debug, debug_domains=None): |
154 | """ | 152 | """ |
155 | Set default verbosity and debug levels config the logger | 153 | Set default verbosity and debug levels config the logger |
156 | """ | 154 | """ |
157 | bb.msg.loggerDefaultVerbose = verbose | ||
158 | if verbose: | ||
159 | bb.msg.loggerVerboseLogs = True | ||
160 | |||
161 | if debug: | 155 | if debug: |
162 | bb.msg.loggerDefaultLogLevel = BBLogFormatter.DEBUG - debug + 1 | 156 | bb.msg.loggerDefaultLogLevel = BBLogFormatter.DEBUG - debug + 1 |
163 | elif verbose: | 157 | elif verbose: |