diff --git a/server/common/rootweb/opennelmanager_log.php b/server/common/rootweb/opennelmanager_log.php index 16714ae..ae63491 100644 --- a/server/common/rootweb/opennelmanager_log.php +++ b/server/common/rootweb/opennelmanager_log.php @@ -163,26 +163,26 @@ if (file_exists($cfgfile)) { ksort($data); foreach ($data as $key => $value) { -// 2018/08/03 10:45:36 CEST INF 442b0740 command.cpp 149 - list($date, $hour, $timezone, $typesrc, $addr, $program, $line, $msg) = explode(' ', $value, 8); - if ( $key == "first-line" or $key == "last-line" ) continue; + // 2018/08/03 10:45:36 CEST INF 442b0740 command.cpp 149 + list($date, $hour, $timezone, $typesrc, $addr, $program, $line, $msg) = explode(' ', $value, 8); + $type = substr( $typesrc, strlen($typesrc) - 3 ); - if ( $type == 'INF' ) { + if ( $type == 'INF' ) { // Information $fond = "bgcolor=\"SpringGreen \""; - } else if ( $type == 'DBG') { + } else if ( $type == 'DBG') { // Information $fond = "bgcolor=\"AQUAMARINE\""; - } else if ( $type == 'WRN') { + } else if ( $type == 'WRN') { // Warning $fond = "bgcolor=\"Yellow\""; - } else if ( $type == 'ERR') { + } else if ( $type == 'ERR') { // Error $fond = "bgcolor=\"Tomato\""; - } else if ( $type == 'STT') { + } else if ( $type == 'STT') { // Statistic $fond = "bgcolor=\"Yellow\""; - } else if ( $type == 'AST') { + } else if ( $type == 'AST') { // Assert $fond = "bgcolor=\"Tomato\""; - } else if ( $type == 'UKN') { + } else if ( $type == 'UKN') { // Unknown $fond = "bgcolor=\"Tomato\""; } else { $msg = "$typesrc $addr $program $line $msg";