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:
Tony Murray
2021-05-05 10:27:10 -05:00
committed by GitHub
parent aa83e6aa1a
commit 76910e4180
4 changed files with 22 additions and 5 deletions
+3 -3
View File
@@ -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();