[oe-commits] [bitbake] 05/06: server/process: Show the last 60 log lines, not the last 10

git at git.openembedded.org git at git.openembedded.org
Tue Jan 8 20:19:48 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch 1.40
in repository bitbake.

commit 2626ff964c0a5726037e539cfd07027aded0b7a9
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Tue Nov 27 11:32:26 2018 +0000

    server/process: Show the last 60 log lines, not the last 10
    
    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 6208c18..d12b06f 100644
--- a/lib/bb/server/process.py
+++ b/lib/bb/server/process.py
@@ -426,8 +426,8 @@ class BitBakeServer(object):
                                     started = True
                                     lines.append(line)
                 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)))
             else:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list