From 7fecce071cea4c660e30b1e1c845c3459ee082ce Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 15 Jul 2019 14:25:33 +0200 Subject: buildmaster/log.php: print duration and exit_code for ssh_log, too (and colorize according to exit_code) --- buildmaster/log.php | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/buildmaster/log.php b/buildmaster/log.php index e339db7..6235b06 100644 --- a/buildmaster/log.php +++ b/buildmaster/log.php @@ -9,6 +9,8 @@ require_once BASE . "/lib/mysql.php"; $to_show = "ssh"; $columns = array( "date" => "`ssh_log`.`date`", + "duration" => "`ssh_log`.`duration`", + "exit code" => "`ssh_log`.`exit_code`", "build slave" => "`build_slaves`.`name`", "action" => "`ssh_log`.`action`", "parameters" => "`ssh_log`.`parameters`" @@ -101,7 +103,24 @@ require_once BASE . "/lib/mysql.php"; print " \n"; foreach ($row as $val) { print " \n"; - print " " . $val . "\n"; + print " "; + if (array_key_exists('exit code', $row)) { + print ""; + } + print $val; + if (array_key_exists('exit code', $row)) { + print ""; + } + print "\n"; print " \n"; } print " \n"; -- cgit v1.2.3-70-g09d2