summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/ui/knotty.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/ui/knotty.py')
-rw-r--r--bitbake/lib/bb/ui/knotty.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py
index 0efa614dfc..65ff2727dc 100644
--- a/bitbake/lib/bb/ui/knotty.py
+++ b/bitbake/lib/bb/ui/knotty.py
@@ -21,6 +21,7 @@ import fcntl
21import struct 21import struct
22import copy 22import copy
23import atexit 23import atexit
24from itertools import groupby
24 25
25from bb.ui import uihelper 26from bb.ui import uihelper
26 27
@@ -539,6 +540,13 @@ def main(server, eventHandler, params, tf = TerminalFilter):
539 except OSError: 540 except OSError:
540 pass 541 pass
541 542
543 # Add the logging domains specified by the user on the command line
544 for (domainarg, iterator) in groupby(params.debug_domains):
545 dlevel = len(tuple(iterator))
546 l = logconfig["loggers"].setdefault("BitBake.%s" % domainarg, {})
547 l["level"] = logging.DEBUG - dlevel + 1
548 l.setdefault("handlers", []).extend(["BitBake.verbconsole"])
549
542 conf = bb.msg.setLoggingConfig(logconfig, logconfigfile) 550 conf = bb.msg.setLoggingConfig(logconfig, logconfigfile)
543 551
544 if sys.stdin.isatty() and sys.stdout.isatty(): 552 if sys.stdin.isatty() and sys.stdout.isatty():