From 3a040192412c182f183c39441f946455bb554093 Mon Sep 17 00:00:00 2001 From: Danielv123 Date: Thu, 2 Mar 2017 11:50:18 +0100 Subject: [PATCH] Reduce logs --- client.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client.js b/client.js index 255fa4e3..abfa5d5d 100644 --- a/client.js +++ b/client.js @@ -188,10 +188,10 @@ write-data=__PATH__executable__/../../../instances/" + instance + "\r\n\ console.log(`child process exited with code ${code}`); process.exit(); }); - +/* serverprocess.stdout.on('data', (chunk) => { console.log('OUT: ' + chunk); - }) + })*/ serverprocess.stderr.on('data', (chunk) => { console.log('ERR: ' + chunk); @@ -353,7 +353,7 @@ function instanceManagement() { require('getmac').getMac(function (err, mac) { if (err) throw err payload.mac = mac - console.log(payload) + // console.log(payload) needle.post(config.masterIP + ":" + config.masterPort + '/getID', payload, function (err, response, body) { if (response && response.body) { // In the future we might be interested in whether or not we actually manage to send it, but honestly I don't care. @@ -502,7 +502,7 @@ function instanceManagement() { inventoryFrame[inventory[i].name] = Number(inventory[i].count); } inventoryFrame["signal-unixtime"] = Math.floor(Date.now()/1000); - console.log("RCONing inventory! " + JSON.stringify(inventoryFrame)); + // console.log("RCONing inventory! " + JSON.stringify(inventoryFrame)); client.exec("/silent-command remote.call('clusterio', 'receiveInventory', '" + JSON.stringify(inventoryFrame) + "')"); } });