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: { // canvas: {
// debugDetection: true // debugDetection: true
// }, // },
// debugCanvas: { debugCanvas: {
// enabled: true, // enabled: true,
// guardLine: true // guardLine: true
// enabled: false, // enabled: false,
// guardLine: false // guardLine: false
// } }
} }
if(_prod){ if(_prod){
@ -41,12 +41,14 @@ if(_prod){
} }
function __disableAllDebug(obj) { function __disableAllDebug(obj) {
for(key in obj) { for(let key in obj) {
if (obj.hasOwnProperty(key) ){ if (obj.hasOwnProperty(key) ){
if(obj[key] instanceof Object) if(obj[key] instanceof Object) {
__disableAllDebug(obj[key]); __disableAllDebug(obj[key]);
else }
else {
obj[key] = false; obj[key] = false;
}
} }
} }
} }

View File

@ -60,7 +60,9 @@ class ArDetector {
throw "Settings prevent autoar from starting" throw "Settings prevent autoar from starting"
} }
} catch (e) { } 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 // edges = fastCandidates; // todo: processing
// } else { // } else {
edgeCandidates = this.edgeDetect(image, fastCandidates); edgeCandidates = this.edgeDetect(image, fastCandidates);
console.log("edge candidates:", edgeCandidates)
bars = this.edgePostprocess(edgeCandidates, this.conf.canvas.height); bars = this.edgePostprocess(edgeCandidates, this.conf.canvas.height);
console.log("bars:", bars)
// } // }
} catch (e) { } catch (e) {
if (Debug.debug) { if (Debug.debug) {