Browse Source

clean console.log

asr@asr.fr 2 years ago
parent
commit
d71817b5d2
3 changed files with 2 additions and 3 deletions
  1. 1 1
      backend/server.js
  2. 1 1
      frontend/assets/config.json
  3. 0 1
      frontend/index.html

+ 1 - 1
backend/server.js

@@ -171,7 +171,7 @@ function objectGarbageCollector(){
 		}
 	};
 	objectsAlive = objectsAlive.filter(triangle => triangle.remainingDuration > 0);
-	if (config.app.debug && config.app.debugLog.backend.emitter.dots) {
+	if (config.app.debug && config.app.debugLog.backend.emitter.garbageCollection) {
 		console.log("--garbageCollection--", lastDots);
 		objectsAlive.forEach(tr => console.log(tr));
 	}

+ 1 - 1
frontend/assets/config.json

@@ -12,7 +12,7 @@
 			"backend": {
 				"emitter": {
 					"httpRequest": false,
-					"dots": true,
+					"dots": false,
 					"segments": false,
 					"triangles": false,
 					"apex": false,

+ 0 - 1
frontend/index.html

@@ -91,7 +91,6 @@
 					const touches = [];
 					for (var i = 0; i < evt.touches.length; i++) {
 						const boxId = boxes.findIndex(box => box.id == evt.touches[i].target.id);
-						console.log(boxId);
 						if(boxId >= 0){ // we only keep touches in the initial div
 							touches.push({
 								clientX: evt.touches[i].clientX,