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.
This commit is contained in:
Hornwitser committed 2019-08-24 11:02:50 +02:00
1 parent 55164cc48f
commit 0398bd10f8
1 file changed
-6
-6
View File
@@ -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] = {};
}