[oe-commits] [bitbake] 06/07: server/process: print a message when no logfile
git at git.openembedded.org
git at git.openembedded.org
Fri Nov 16 14:03:11 UTC 2018
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository bitbake.
commit 4adc582d2df7fdb9e51c4ebb5e66bbd21165b4dc
Author: Robert Yang <liezhi.yang at windriver.com>
AuthorDate: Wed Nov 14 17:46:40 2018 +0800
server/process: print a message when no logfile
[YOCTO #12898]
There might be no bitbake-cookerdaemon.log, print a message for debugging.
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/server/process.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index 0cae41c..4e0d9c2 100644
--- a/lib/bb/server/process.py
+++ b/lib/bb/server/process.py
@@ -428,7 +428,11 @@ class BitBakeServer(object):
bb.error("Last 10 lines of server log for this session (%s):\n%s" % (logfile, "".join(lines[-10:])))
else:
bb.error("Server log for this session (%s):\n%s" % (logfile, "".join(lines)))
+ else:
+ bb.error("%s doesn't exist" % logfile)
+
raise SystemExit(1)
+
ready.close()
def _startServer(self):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list