From af1e82ddbb5ecf4ee9f841bd98381f90eb553185 Mon Sep 17 00:00:00 2001 From: Faidon Liambotis Date: Sat, 11 Jan 2014 17:34:45 +0200 Subject: [PATCH] process_syslog: remove debugging statements Currently, filtered syslog messages (via syslog_filter) are spewed into stdout (unlike unfiltered ones), presumably for debugging. When syslog.php has been invoked from rsyslog, writing to stdout results in an EPIPE which is unhandled and hence syslog.php dies. Remove them, as they're completely redundant and of dubious gains to debugging. --- includes/syslog.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/includes/syslog.php b/includes/syslog.php index 68a426436..a52fa086f 100755 --- a/includes/syslog.php +++ b/includes/syslog.php @@ -44,8 +44,6 @@ function process_syslog($entry, $update) { if (strpos($entry['msg'], $bi) !== FALSE) { - print_r($entry); - echo('D-'.$bi); return $entry; } }