Reversed #4508 since the code aleady does this.
Ylian Saint-Hilaire committed
Sep 5, 2022 at 22:23 UTC
86060d7c5be05c6b022d6dafd1495ae159fca478
1 file changed
+3
-7
meshcentral.js
+3
-7
@@ -796,13 +796,9 @@ function CreateMeshCentralServer(config, args) {
796
}
797
798
// Local console tracing
799
- var debugOptions = [obj.args.debug];
800
- if (config.settings.debug) { debugOptions.push(config.settings.debug) }
801
- debugOptions.forEach((option) => {
802
- if (typeof option == 'string') { obj.debugSources = option.toLowerCase().split(','); }
803
- else if (typeof option == 'object') { obj.debugSources = option; }
804
- else if (option === true) { obj.debugSources = '*'; }
805
- });
799
+ if (typeof obj.args.debug == 'string') { obj.debugSources = obj.args.debug.toLowerCase().split(','); }
800
+ else if (typeof obj.args.debug == 'object') { obj.debugSources = obj.args.debug; }
801
+ else if (obj.args.debug === true) { obj.debugSources = '*'; }
802
803
require('./db.js').CreateDB(obj,
804
function (db) {