mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added debug to discovery protocols + stop them running if not configured
This commit is contained in:
@@ -580,7 +580,12 @@ function edit_service($service, $descr, $service_ip, $service_param = "", $servi
|
||||
function d_echo($text, $no_debug_text = null) {
|
||||
global $debug;
|
||||
if ($debug) {
|
||||
echo "$text";
|
||||
if (is_array($text)) {
|
||||
print_r($text);
|
||||
}
|
||||
else {
|
||||
echo "$text";
|
||||
}
|
||||
}
|
||||
elseif ($no_debug_text) {
|
||||
echo "$no_debug_text";
|
||||
|
Reference in New Issue
Block a user