From 4c03d1c53a8ba3ea1b084be6f722ec116dc16d75 Mon Sep 17 00:00:00 2001 From: Andre Lorbach Date: Wed, 17 Sep 2008 11:52:29 +0200 Subject: [PATCH] Fixed bug in apache2 msgparser --- src/classes/logstreamdisk.class.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/classes/logstreamdisk.class.php b/src/classes/logstreamdisk.class.php index c9a721b..b4af26f 100644 --- a/src/classes/logstreamdisk.class.php +++ b/src/classes/logstreamdisk.class.php @@ -233,18 +233,18 @@ class LogStreamDisk extends LogStream { else $ret = $this->ReadNextBackwards($uID, $arrProperitesOut); - // Only PARSE on success! - if ( $ret == SUCCESS && $bParseMessage) - { - // Line Parser Hook here - $this->_logStreamConfigObj->_lineParser->ParseLine($arrProperitesOut[SYSLOG_MESSAGE], $arrProperitesOut); - - // Run optional Message Parsers now - $this->_logStreamConfigObj->ProcessMsgParsers($arrProperitesOut[SYSLOG_MESSAGE], $arrProperitesOut); + // Only PARSE on success! + if ( $ret == SUCCESS && $bParseMessage) + { + // Line Parser Hook here + $this->_logStreamConfigObj->_lineParser->ParseLine($arrProperitesOut[SYSLOG_MESSAGE], $arrProperitesOut); + + // Run optional Message Parsers now + $this->_logStreamConfigObj->ProcessMsgParsers($arrProperitesOut[SYSLOG_MESSAGE], $arrProperitesOut); - // Set uID to the PropertiesOut! - $arrProperitesOut[SYSLOG_UID] = $uID; - } + // Set uID to the PropertiesOut! + $arrProperitesOut[SYSLOG_UID] = $uID; + } // Loop until the filter applies, or another error occurs. } while ( $this->ApplyFilters($ret, $arrProperitesOut) != SUCCESS && $ret == SUCCESS ); @@ -855,7 +855,7 @@ class LogStreamDisk extends LogStream { if ( !$bEval ) { - // unmatching filter, rest property array + // unmatching filter, reset property array foreach ( $this->_arrProperties as $property ) $arrProperitesOut[$property] = '';