mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 15:14:52 +09:00
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:
1 parent
55164cc48f
commit
0398bd10f8
1 file changed
-6
@@ -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] = {};
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user