mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Update syslog.php (#13150)
* Update syslog.php Clean code - removed some unused stuff * Update syslog.php
This commit is contained in:
@ -11,8 +11,6 @@
|
|||||||
$init_modules = [];
|
$init_modules = [];
|
||||||
require __DIR__ . '/includes/init.php';
|
require __DIR__ . '/includes/init.php';
|
||||||
|
|
||||||
$i = '1';
|
|
||||||
|
|
||||||
$s = fopen('php://stdin', 'r');
|
$s = fopen('php://stdin', 'r');
|
||||||
while ($line = fgets($s)) {
|
while ($line = fgets($s)) {
|
||||||
//logfile($line);
|
//logfile($line);
|
||||||
@ -20,5 +18,4 @@ while ($line = fgets($s)) {
|
|||||||
process_syslog($entry, 1);
|
process_syslog($entry, 1);
|
||||||
unset($entry);
|
unset($entry);
|
||||||
unset($line);
|
unset($line);
|
||||||
$i++;
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user