mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Remove debug globals (#12811)
* Remove $debug global and $vdebug global makes these variables more accessible and protects from collisions. * the on boot set sends application as the first parameter, just handle that * Relocate other debug related functions * Log debug to stdout * Wrong output * remove stupid constants * Fix lint and style issues
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
|
||||
use App\Models\Device;
|
||||
use LibreNMS\Exceptions\HostUnreachableException;
|
||||
use LibreNMS\Util\Debug;
|
||||
use Symfony\Component\Process\Process;
|
||||
|
||||
Artisan::command('device:rename
|
||||
@@ -107,7 +108,7 @@ Artisan::command('device:add
|
||||
include base_path('includes/init.php');
|
||||
|
||||
if (($verbosity = $this->getOutput()->getVerbosity()) >= 128) {
|
||||
set_debug();
|
||||
Debug::set();
|
||||
if ($verbosity >= 256) {
|
||||
global $verbose;
|
||||
$verbose = true;
|
||||
|
Reference in New Issue
Block a user