diff options
Diffstat (limited to 'bitbake')
| -rw-r--r-- | bitbake/lib/bb/ui/toasterui.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/bitbake/lib/bb/ui/toasterui.py b/bitbake/lib/bb/ui/toasterui.py index c5bf715ea5..435cc2b304 100644 --- a/bitbake/lib/bb/ui/toasterui.py +++ b/bitbake/lib/bb/ui/toasterui.py | |||
| @@ -92,6 +92,15 @@ def _close_build_log(build_log): | |||
| 92 | build_log.close() | 92 | build_log.close() |
| 93 | logger.removeHandler(build_log) | 93 | logger.removeHandler(build_log) |
| 94 | 94 | ||
| 95 | _evt_list = [ "bb.runqueue.runQueueExitWait", "bb.event.LogExecTTY", "logging.LogRecord", | ||
| 96 | "bb.build.TaskFailed", "bb.build.TaskBase", "bb.event.ParseStarted", | ||
| 97 | "bb.event.ParseProgress", "bb.event.ParseCompleted", "bb.event.CacheLoadStarted", | ||
| 98 | "bb.event.CacheLoadProgress", "bb.event.CacheLoadCompleted", "bb.command.CommandFailed", | ||
| 99 | "bb.command.CommandExit", "bb.command.CommandCompleted", "bb.cooker.CookerExit", | ||
| 100 | "bb.event.MultipleProviders", "bb.event.NoProvider", "bb.runqueue.sceneQueueTaskStarted", | ||
| 101 | "bb.runqueue.runQueueTaskStarted", "bb.runqueue.runQueueTaskFailed", "bb.runqueue.sceneQueueTaskFailed", | ||
| 102 | "bb.event.BuildBase", "bb.build.TaskStarted", "bb.build.TaskSucceeded", "bb.build.TaskFailedSilent"] | ||
| 103 | |||
| 95 | def main(server, eventHandler, params): | 104 | def main(server, eventHandler, params): |
| 96 | # set to a logging.FileHandler instance when a build starts; | 105 | # set to a logging.FileHandler instance when a build starts; |
| 97 | # see _open_build_log() | 106 | # see _open_build_log() |
| @@ -115,6 +124,9 @@ def main(server, eventHandler, params): | |||
| 115 | console.setFormatter(formatter) | 124 | console.setFormatter(formatter) |
| 116 | logger.addHandler(console) | 125 | logger.addHandler(console) |
| 117 | logger.setLevel(logging.INFO) | 126 | logger.setLevel(logging.INFO) |
| 127 | llevel, debug_domains = bb.msg.constructLogOptions() | ||
| 128 | server.runCommand(["setEventMask", server.getEventHandle(), llevel, debug_domains, _evt_list]) | ||
| 129 | |||
| 118 | 130 | ||
| 119 | # verify and warn | 131 | # verify and warn |
| 120 | build_history_enabled = True | 132 | build_history_enabled = True |
| @@ -182,8 +194,6 @@ def main(server, eventHandler, params): | |||
| 182 | continue | 194 | continue |
| 183 | 195 | ||
| 184 | if isinstance(event, bb.event.BuildStarted): | 196 | if isinstance(event, bb.event.BuildStarted): |
| 185 | # command-line builds don't fire a ParseStarted event, | ||
| 186 | # so we have to start the log file for those on BuildStarted instead | ||
| 187 | if not (build_log and build_log_file_path): | 197 | if not (build_log and build_log_file_path): |
| 188 | build_log, build_log_file_path = _open_build_log(log_dir) | 198 | build_log, build_log_file_path = _open_build_log(log_dir) |
| 189 | 199 | ||
