From 0398bd10f83369ebe5feca146bc20b787f8b4333 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Sat, 3 Aug 2019 12:50:45 +0200 Subject: [PATCH] Remove debug code Remove debug switch and console.log guarded by it to log every post request to /api/getId as it's not needed. --- master.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/master.js b/master.js index 858d0843..8ecc8584 100644 --- a/master.js +++ b/master.js @@ -14,9 +14,6 @@ node master.js // const updater = require("./updater.js"); // updater.update().then(console.log); -// configgy stuff -debug = false; - // argument parsing const args = require('minimist')(process.argv.slice(2)); @@ -284,9 +281,6 @@ app.post("/api/getID", authenticate.middleware, function(req,res) { // time us a unix timestamp we can use to check for how long the server has been unresponsive // we should save that somewhere and give appropriate response if(req.body){ - if(debug){ - console.log(req.body) - } if(!slaves[req.body.unique]){ slaves[req.body.unique] = {}; }