mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-13 16:03:20 -05:00
Reversed #4508 since the code aleady does this.
This commit is contained in:
parent
cd1a753e4c
commit
86060d7c5b
@ -796,13 +796,9 @@ function CreateMeshCentralServer(config, args) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Local console tracing
|
// Local console tracing
|
||||||
var debugOptions = [obj.args.debug];
|
if (typeof obj.args.debug == 'string') { obj.debugSources = obj.args.debug.toLowerCase().split(','); }
|
||||||
if (config.settings.debug) { debugOptions.push(config.settings.debug) }
|
else if (typeof obj.args.debug == 'object') { obj.debugSources = obj.args.debug; }
|
||||||
debugOptions.forEach((option) => {
|
else if (obj.args.debug === true) { obj.debugSources = '*'; }
|
||||||
if (typeof option == 'string') { obj.debugSources = option.toLowerCase().split(','); }
|
|
||||||
else if (typeof option == 'object') { obj.debugSources = option; }
|
|
||||||
else if (option === true) { obj.debugSources = '*'; }
|
|
||||||
});
|
|
||||||
|
|
||||||
require('./db.js').CreateDB(obj,
|
require('./db.js').CreateDB(obj,
|
||||||
function (db) {
|
function (db) {
|
||||||
|
Loading…
Reference in New Issue
Block a user