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:
@@ -12,6 +12,7 @@
|
||||
*/
|
||||
|
||||
use LibreNMS\Data\Store\Datastore;
|
||||
use LibreNMS\Util\Debug;
|
||||
|
||||
$init_modules = [];
|
||||
require __DIR__ . '/includes/init.php';
|
||||
@@ -23,7 +24,7 @@ if (isset($argv[1]) && is_numeric($argv[1])) {
|
||||
$options = getopt('db:');
|
||||
}
|
||||
|
||||
set_debug(isset($options['d']));
|
||||
Debug::set(isset($options['d']));
|
||||
Datastore::init();
|
||||
|
||||
// Wait for schema update, as running during update can break update
|
||||
|
Reference in New Issue
Block a user