summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/filter_log.inc
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-12-10 16:02:40 +0545
committerPhil Davis <phil.davis@inf.org>2015-12-10 16:02:40 +0545
commiteaf461f994abee765ab6f99560327e69b94b1d9c (patch)
treef7a4593a68d3daba68e1b262001a9aaf34bb6ccc /src/etc/inc/filter_log.inc
parentc0499d48618013412a4b2ace07b04dde7a0df955 (diff)
downloadpfsense-eaf461f994abee765ab6f99560327e69b94b1d9c.zip
pfsense-eaf461f994abee765ab6f99560327e69b94b1d9c.tar.gz
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.
Diffstat (limited to 'src/etc/inc/filter_log.inc')
-rw-r--r--src/etc/inc/filter_log.inc10
1 files changed, 0 insertions, 10 deletions
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;
OpenPOWER on IntegriCloud