Skip to content

Commit eff7c20

Browse files
committed
fix: remove console logs
- replace `log()` with `debug()` method
1 parent cff2e2b commit eff7c20

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/Drawer.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,9 @@ class Drawer {
173173
this.canvasWrapper.reset();
174174

175175
if (this.opts.debug) {
176-
console.log(this.graph);
177-
console.log(this.rings);
178-
console.log(this.ringConnections);
176+
console.debug("Drawer -> draw -> Graph:", this.graph);
177+
console.debug("Drawer -> draw -> Rings:", this.rings);
178+
console.debug("Drawer -> draw -> RingConnections", this.ringConnections);
179179
}
180180
}
181181
}
@@ -3041,4 +3041,4 @@ class Drawer {
30413041
}
30423042
}
30433043

3044-
module.exports = Drawer;
3044+
module.exports = Drawer;

src/SvgDrawer.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ class SvgDrawer {
4444
this.drawVertices(preprocessor.opts.debug);
4545

4646
if (preprocessor.opts.debug) {
47-
console.log(preprocessor.graph);
48-
console.log(preprocessor.rings);
49-
console.log(preprocessor.ringConnections);
47+
console.debug("SvgDrawer -> draw -> Graph:", preprocessor.graph);
48+
console.debug("SvgDrawer -> draw -> Rings:", preprocessor.rings);
49+
console.debug("SvgDrawer -> draw -> RingConnections", preprocessor.ringConnections);
5050
}
5151

5252
return this.svgWrapper.constructSvg();
@@ -336,4 +336,4 @@ class SvgDrawer {
336336
}
337337
}
338338

339-
module.exports = SvgDrawer;
339+
module.exports = SvgDrawer;

src/UtilityFunctions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @returns {String} A string representing a charge.
55
*/
66
function getChargeText(charge) {
7-
console.log('in the utility version of getChargeText');
7+
// console.log('in the utility version of getChargeText');
88
if (charge === 1) {
99
return '+'
1010
} else if (charge === 2) {
@@ -20,4 +20,4 @@ function getChargeText(charge) {
2020

2121
module.exports = {
2222
getChargeText,
23-
}
23+
}

0 commit comments

Comments
 (0)