index : website | |
Archlinux32 website - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | buildmaster/log.php | 21 |
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 " <tr>\n"; foreach ($row as $val) { print " <td>\n"; - print " " . $val . "\n"; + print " "; + if (array_key_exists('exit code', $row)) { + print "<font color=\""; + switch ($row['exit code']) { + case 0: + print "#008000"; + break; + default: + print "#800000"; + break; + }; + print "\">"; + } + print $val; + if (array_key_exists('exit code', $row)) { + print "</font>"; + } + print "\n"; print " </td>\n"; } print " </tr>\n"; |