mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
oeqa: qemurunner: Report UNIX Epoch timestamp on login
Updates the log message printed when login banner is seen in QEMU to report the UNIX Epoch time in addition to the human readable time. This makes it much easier and accurate to correlate logs with the guest, in particular with the guest journalctl which prints log timestamps in human readable format and the oeqa SSH debug logging which prints the UNIX Epoch. (From OE-Core rev: 2a860de611bebae2e1100380b975b7648b8560d9) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 275b6f3c8d0eeafa3902c48a49655491a89c47bc) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
5ae57d4c9b
commit
baae738409
@@ -471,9 +471,9 @@ class QemuRunner:
|
||||
self.server_socket = qemusock
|
||||
stopread = True
|
||||
reachedlogin = True
|
||||
self.logger.debug("Reached login banner in %s seconds (%s)" %
|
||||
self.logger.debug("Reached login banner in %s seconds (%s, %s)" %
|
||||
(time.time() - (endtime - self.boottime),
|
||||
time.strftime("%D %H:%M:%S")))
|
||||
time.strftime("%D %H:%M:%S"), time.time()))
|
||||
else:
|
||||
# no need to check if reachedlogin unless we support multiple connections
|
||||
self.logger.debug("QEMU socket disconnected before login banner reached. (%s)" %
|
||||
|
||||
Reference in New Issue
Block a user