diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/ui/knotty.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 7c645adcc4..38acb4743a 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
@@ -69,6 +69,7 @@ def main(server, eventHandler): | |||
69 | # Get values of variables which control our output | 69 | # Get values of variables which control our output |
70 | includelogs = server.runCommand(["getVariable", "BBINCLUDELOGS"]) | 70 | includelogs = server.runCommand(["getVariable", "BBINCLUDELOGS"]) |
71 | loglines = server.runCommand(["getVariable", "BBINCLUDELOGS_LINES"]) | 71 | loglines = server.runCommand(["getVariable", "BBINCLUDELOGS_LINES"]) |
72 | consolelogfile = server.runCommand(["getVariable", "BB_CONSOLELOG"]) | ||
72 | 73 | ||
73 | helper = uihelper.BBUIHelper() | 74 | helper = uihelper.BBUIHelper() |
74 | 75 | ||
@@ -77,6 +78,11 @@ def main(server, eventHandler): | |||
77 | bb.msg.addDefaultlogFilter(console) | 78 | bb.msg.addDefaultlogFilter(console) |
78 | console.setFormatter(format) | 79 | console.setFormatter(format) |
79 | logger.addHandler(console) | 80 | logger.addHandler(console) |
81 | if consolelogfile: | ||
82 | consolelog = logging.FileHandler(consolelogfile) | ||
83 | bb.msg.addDefaultlogFilter(consolelog) | ||
84 | consolelog.setFormatter(format) | ||
85 | logger.addHandler(consolelog) | ||
80 | 86 | ||
81 | try: | 87 | try: |
82 | cmdline = server.runCommand(["getCmdLineAction"]) | 88 | cmdline = server.runCommand(["getCmdLineAction"]) |