Skip to content

Commit

Permalink
fix: remove console logs
Browse files Browse the repository at this point in the history
- replace `log()` with `debug()` method
  • Loading branch information
SimonGolms committed Mar 4, 2020
1 parent cff2e2b commit eff7c20
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/Drawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ class Drawer {
this.canvasWrapper.reset();

if (this.opts.debug) {
console.log(this.graph);
console.log(this.rings);
console.log(this.ringConnections);
console.debug("Drawer -> draw -> Graph:", this.graph);
console.debug("Drawer -> draw -> Rings:", this.rings);
console.debug("Drawer -> draw -> RingConnections", this.ringConnections);
}
}
}
Expand Down Expand Up @@ -3041,4 +3041,4 @@ class Drawer {
}
}

module.exports = Drawer;
module.exports = Drawer;
8 changes: 4 additions & 4 deletions src/SvgDrawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ class SvgDrawer {
this.drawVertices(preprocessor.opts.debug);

if (preprocessor.opts.debug) {
console.log(preprocessor.graph);
console.log(preprocessor.rings);
console.log(preprocessor.ringConnections);
console.debug("SvgDrawer -> draw -> Graph:", preprocessor.graph);
console.debug("SvgDrawer -> draw -> Rings:", preprocessor.rings);
console.debug("SvgDrawer -> draw -> RingConnections", preprocessor.ringConnections);
}

return this.svgWrapper.constructSvg();
Expand Down Expand Up @@ -336,4 +336,4 @@ class SvgDrawer {
}
}

module.exports = SvgDrawer;
module.exports = SvgDrawer;
4 changes: 2 additions & 2 deletions src/UtilityFunctions.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @returns {String} A string representing a charge.
*/
function getChargeText(charge) {
console.log('in the utility version of getChargeText');
// console.log('in the utility version of getChargeText');
if (charge === 1) {
return '+'
} else if (charge === 2) {
Expand All @@ -20,4 +20,4 @@ function getChargeText(charge) {

module.exports = {
getChargeText,
}
}

0 comments on commit eff7c20

Please sign in to comment.