From eaf461f994abee765ab6f99560327e69b94b1d9c Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Thu, 10 Dec 2015 16:02:40 +0545 Subject: Remove bonus debug from filter_log.inc These debug blocks look like they should not be in production. if 'debug' is turned on, then they would always log_error() and return for all log lines, even good ones. --- src/etc/inc/filter_log.inc | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/etc/inc/filter_log.inc') diff --git a/src/etc/inc/filter_log.inc b/src/etc/inc/filter_log.inc index a010471..310d0ef 100644 --- a/src/etc/inc/filter_log.inc +++ b/src/etc/inc/filter_log.inc @@ -235,11 +235,6 @@ function parse_unknown_log_line($line) { list($all, $flent['time'], $flent['message']) = $log_split; - if($g['debug']) { - log_error(sprintf(gettext("There was a error parsing: %s. Please report to mailing list or forum."), $flent['process'])); - return ""; - } - /* If there is time, and message, fields, then the line should be usable/good */ if (!( (trim($flent['time']) == "") && (trim($flent['message']) == "") )) { return $flent; @@ -274,11 +269,6 @@ function parse_system_log_line($line) { list($all, $flent['time'], $flent['host'], $flent['process'], $flent['pid'], $flent['message']) = $log_split; - if($g['debug']) { - log_error(sprintf(gettext("There was a error parsing: %s. Please report to mailing list or forum."), $flent['process'])); - return ""; - } - /* If there is time, process, and message, fields, then the line should be usable/good */ if (!( (trim($flent['time']) == "") && (trim($flent['process']) == "") && (trim($flent['message']) == "") )) { return $flent; -- cgit v1.1