[bitbake-devel] [PATCH 2/3] server/process: Show the last 60 log lines, not the last 10

Richard Purdie richard.purdie at linuxfoundation.org
Tue Nov 27 22:14:45 UTC 2018


10 log lines may not capture any full traceback, increase the number of
lines to 60 which covers most tracebacks.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/server/process.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index 38a62fa34e..efb4332394 100644
--- a/lib/bb/server/process.py
+++ b/lib/bb/server/process.py
@@ -428,8 +428,8 @@ class BitBakeServer(object):
                         if len(lastlines) > 60:
                             lastlines = lastlines[-60:]
                 if lines:
-                    if len(lines) > 10:
-                        bb.error("Last 10 lines of server log for this session (%s):\n%s" % (logfile, "".join(lines[-10:])))
+                    if len(lines) > 60:
+                        bb.error("Last 60 lines of server log for this session (%s):\n%s" % (logfile, "".join(lines[-60:])))
                     else:
                         bb.error("Server log for this session (%s):\n%s" % (logfile, "".join(lines)))
                 elif lastlines:
-- 
2.17.1



More information about the bitbake-devel mailing list