summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/msg.py
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-06-23 22:59:10 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-08 09:57:27 +0100
commit76feac37ceb68a850394e51dce8e36f1ec2c895d (patch)
treebc90e81add399a0098426c3d93db92553b0e02d2 /bitbake/lib/bb/msg.py
parent465f93968f113ab32efc9da151078d481a9e08b9 (diff)
downloadpoky-76feac37ceb68a850394e51dce8e36f1ec2c895d.tar.gz
bitbake: knotty: add quiet output mode
Quiet output mode disables printing most messages (below warnings) to the console; however these messages still go to the console log file. This is primarily for cases where bitbake is being launched interactively from some other process, but where full console output is not needed. Because of the need to keep logging all normal events to the console log, this functionality was implemented within the knotty UI rather than in bb.msg (where verbose mode is implemented). We don't currently have a means of registering command line options from the UI end, thus the option actually has to be registered in main.py regardless of the UI, however I didn't feel like it was worth setting up such a mechanism just for this option. (Bitbake rev: db95cdef08e339dec7462bfde3ad7d75c1c60dd8) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/msg.py')
-rw-r--r--bitbake/lib/bb/msg.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/msg.py b/bitbake/lib/bb/msg.py
index 8c3ab47623..b7c39fa133 100644
--- a/bitbake/lib/bb/msg.py
+++ b/bitbake/lib/bb/msg.py
@@ -182,9 +182,12 @@ def constructLogOptions():
182 debug_domains["BitBake.%s" % domainarg] = logging.DEBUG - dlevel + 1 182 debug_domains["BitBake.%s" % domainarg] = logging.DEBUG - dlevel + 1
183 return level, debug_domains 183 return level, debug_domains
184 184
185def addDefaultlogFilter(handler, cls = BBLogFilter): 185def addDefaultlogFilter(handler, cls = BBLogFilter, forcelevel=None):
186 level, debug_domains = constructLogOptions() 186 level, debug_domains = constructLogOptions()
187 187
188 if forcelevel is not None:
189 level = forcelevel
190
188 cls(handler, level, debug_domains) 191 cls(handler, level, debug_domains)
189 192
190# 193#