mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Remove all unneeded if($debug)-statements and replace them with d_echo
This commit is contained in:
@@ -3,9 +3,7 @@
|
||||
// Plugins
|
||||
if (!empty($agent_data['munin'])) {
|
||||
echo 'Munin Plugins:';
|
||||
if ($debug) {
|
||||
print_r($agent_data['munin']);
|
||||
}
|
||||
d_echo($agent_data['munin']);
|
||||
|
||||
// Build array of existing plugins
|
||||
$plugins_dbq = dbFetchRows('SELECT * FROM `munin_plugins` WHERE `device_id` = ?', array($device['device_id']));
|
||||
@@ -38,9 +36,7 @@ if (!empty($agent_data['munin'])) {
|
||||
$plugin_rrd = $plugins_rrd_dir.'/'.$plugin_type;
|
||||
$plugin_uniq = $plugin_type.'_';
|
||||
// }
|
||||
if ($debug) {
|
||||
echo "\n[$plugin_data]\n";
|
||||
}
|
||||
d_echo("\n[$plugin_data]\n");
|
||||
|
||||
foreach (explode("\n", $plugin_data) as $line) {
|
||||
list($key, $value) = explode(' ', $line, 2);
|
||||
|
Reference in New Issue
Block a user