rogue console.log removal

This commit is contained in:
Tamius Han 2019-06-03 00:45:59 +02:00
parent 98703c30d2
commit a2f28f738a
3 changed files with 10 additions and 9 deletions

View File

@ -28,12 +28,12 @@ var Debug = {
// canvas: {
// debugDetection: true
// },
// debugCanvas: {
debugCanvas: {
// enabled: true,
// guardLine: true
// enabled: false,
// guardLine: false
// }
}
}
if(_prod){
@ -41,12 +41,14 @@ if(_prod){
}
function __disableAllDebug(obj) {
for(key in obj) {
for(let key in obj) {
if (obj.hasOwnProperty(key) ){
if(obj[key] instanceof Object)
if(obj[key] instanceof Object) {
__disableAllDebug(obj[key]);
else
}
else {
obj[key] = false;
}
}
}
}

View File

@ -60,7 +60,9 @@ class ArDetector {
throw "Settings prevent autoar from starting"
}
} catch (e) {
console.log("%c[ArDetect::init] INITIALIZATION FAILED!\n", _ard_console_stop, e);
if (Debug.debug) {
console.log("%c[ArDetect::init] INITIALIZATION FAILED!\n", _ard_console_stop, e);
}
}
}

View File

@ -40,10 +40,7 @@ class EdgeDetect{
// edges = fastCandidates; // todo: processing
// } else {
edgeCandidates = this.edgeDetect(image, fastCandidates);
console.log("edge candidates:", edgeCandidates)
bars = this.edgePostprocess(edgeCandidates, this.conf.canvas.height);
console.log("bars:", bars)
// }
} catch (e) {
if (Debug.debug) {