From 9461978a6edd48262ae8dc29b0814206dc0a1861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Vest=C3=B8l?= Date: Mon, 30 Jul 2018 13:30:03 +0200 Subject: [PATCH] Reduced log spam --- client.js | 2 +- master.js | 4 ++-- sharedPlugins/inventoryImports/index.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client.js b/client.js index 35097d3a..3acc337d 100644 --- a/client.js +++ b/client.js @@ -716,7 +716,7 @@ function instanceManagement() { console.log("##### getMac crashed, but we don't really give a shit because we are probably closing down #####"); } payload.mac = mac; - console.log("Registered our presence with master "+config.masterIP+" at " + payload.time); + // console.log("Registered our presence with master "+config.masterIP+" at " + payload.time); needle.post(config.masterIP + ":" + config.masterPort + '/api/getID', payload, needleOptionsWithTokenAuthHeader, function (err, response, body) { if (err && err.code != "ECONNRESET"){ console.error("We got problems, something went wrong when contacting master"+config.masterIP+" at " + payload.time); diff --git a/master.js b/master.js index 6f4c3cd8..f66663d9 100644 --- a/master.js +++ b/master.js @@ -337,7 +337,7 @@ app.post("/api/getID", authenticate.middleware, function(req,res) { slaves[req.body.unique][k] = req.body[k]; } } - console.log("Slave registered: " + slaves[req.body.unique].mac + " : " + slaves[req.body.unique].serverPort+" at " + slaves[req.body.unique].publicIP + " with name " + slaves[req.body.unique].instanceName); + // console.log("Slave registered: " + slaves[req.body.unique].mac + " : " + slaves[req.body.unique].serverPort+" at " + slaves[req.body.unique].publicIP + " with name " + slaves[req.body.unique].instanceName); } httpRequestDurationMilliseconds.labels(req.route.path).observe(Date.now()-reqStartTime); }); @@ -362,7 +362,7 @@ app.post("/api/editSlaveMeta", authenticate.middleware, function(req,res) { slaves[req.body.instanceID].meta = deepmerge(slaves[req.body.instanceID].meta, req.body.meta, {clone:true}); let metaPortion = JSON.stringify(req.body.meta); if(metaPortion.length > 50) metaPortion = metaPortion.substring(0,20) + "..."; - console.log("Updating slave "+slaves[req.body.instanceID].instanceName+": " + slaves[req.body.instanceID].mac + " : " + slaves[req.body.instanceID].serverPort+" at " + slaves[req.body.instanceID].publicIP, metaPortion); + // console.log("Updating slave "+slaves[req.body.instanceID].instanceName+": " + slaves[req.body.instanceID].mac + " : " + slaves[req.body.instanceID].serverPort+" at " + slaves[req.body.instanceID].publicIP, metaPortion); } else { res.send("ERROR: Invalid instanceID or password") } diff --git a/sharedPlugins/inventoryImports/index.js b/sharedPlugins/inventoryImports/index.js index ebec81df..40dd929e 100644 --- a/sharedPlugins/inventoryImports/index.js +++ b/sharedPlugins/inventoryImports/index.js @@ -12,7 +12,7 @@ class inventoryImports { this.messageInterface = messageInterface; messageInterface("/silent-command game.print('InventoryImports enabled')"); setInterval(function(){ - messageInterface("Polling inventories\n") + // messageInterface("Polling inventories\n") messageInterface(functions.pollInventories(pluginConfig.scriptOutputFileSubscription)); }, 10000); }