mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Hook up librenms cli debug (#9632)
* Hook up librenms cli debug * forgot to add function exists check, good travis-ci :)
This commit is contained in:
@@ -51,4 +51,18 @@ class Kernel extends ConsoleKernel
|
||||
|
||||
return $this->artisan;
|
||||
}
|
||||
|
||||
public function handle($input, $output = null)
|
||||
{
|
||||
// intercept input and check for debug
|
||||
if ($input->hasParameterOption(['-d', '--debug', '-vv', '-vvv'], true)) {
|
||||
if ($input->hasParameterOption(['-vvv'], true)) {
|
||||
global $vdebug;
|
||||
$vdebug = true;
|
||||
}
|
||||
$this->app->booted('set_debug');
|
||||
}
|
||||
|
||||
return parent::handle($input, $output);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user