diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2016-06-23 22:59:03 +1200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-08 09:57:26 +0100 |
commit | 481048cd2a64a08501bb5ea7ec0bc9ef0a9a5cc9 (patch) | |
tree | 2ef6bc7d44a669d3dd4859b72868e6035dfad51c | |
parent | 312f1a5e74151b75e8f5e0d941c37ecac019245d (diff) | |
download | poky-481048cd2a64a08501bb5ea7ec0bc9ef0a9a5cc9.tar.gz |
bitbake: knotty: provide a symlink to the latest console log
If you're looking to find the latest console log repeatedly it can be a bit
tedious - let's just create a symlink just as we do with other logs to
make it easy to find.
(Bitbake rev: e9f41c0507a6527bf2ed86506813d4d4a89f8ebf)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 9605c8ee50..ddd36d50f6 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py | |||
@@ -287,6 +287,12 @@ def main(server, eventHandler, params, tf = TerminalFilter): | |||
287 | bb.msg.addDefaultlogFilter(consolelog) | 287 | bb.msg.addDefaultlogFilter(consolelog) |
288 | consolelog.setFormatter(conlogformat) | 288 | consolelog.setFormatter(conlogformat) |
289 | logger.addHandler(consolelog) | 289 | logger.addHandler(consolelog) |
290 | loglink = os.path.join(os.path.dirname(consolelogfile), 'console-latest.log') | ||
291 | bb.utils.remove(loglink) | ||
292 | try: | ||
293 | os.symlink(os.path.basename(consolelogfile), loglink) | ||
294 | except OSError: | ||
295 | pass | ||
290 | 296 | ||
291 | llevel, debug_domains = bb.msg.constructLogOptions() | 297 | llevel, debug_domains = bb.msg.constructLogOptions() |
292 | server.runCommand(["setEventMask", server.getEventHandle(), llevel, debug_domains, _evt_list]) | 298 | server.runCommand(["setEventMask", server.getEventHandle(), llevel, debug_domains, _evt_list]) |