mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Debug and collect-snmp-data.php fixes (#12837)
Fix output so it can be captured and typo in collect-snmp-data.php
This commit is contained in:
@@ -189,13 +189,13 @@ class ModuleTestHelper
|
||||
// Run discovery
|
||||
ob_start();
|
||||
$save_debug = Debug::isEnabled();
|
||||
$save_vedbug = Debug::isEnabled();
|
||||
$save_vdebug = Debug::isVerbose();
|
||||
Debug::set();
|
||||
Debug::setVerbose();
|
||||
Debug::setVerbose(false);
|
||||
discover_device($device, $this->parseArgs('discovery'));
|
||||
poll_device($device, $this->parseArgs('poller'));
|
||||
Debug::set($save_debug);
|
||||
Debug::setVerbose($save_vedbug);
|
||||
Debug::setVerbose($save_vdebug);
|
||||
$collection_output = ob_get_contents();
|
||||
ob_end_clean();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user