mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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.
This commit is contained in:
@@ -44,8 +44,6 @@ function process_syslog($entry, $update)
|
||||
{
|
||||
if (strpos($entry['msg'], $bi) !== FALSE)
|
||||
{
|
||||
print_r($entry);
|
||||
echo('D-'.$bi);
|
||||
return $entry;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user