From 31e4bab159321f5187937d4a450e533d33a9beaa Mon Sep 17 00:00:00 2001 From: Danielv123 Date: Fri, 21 Apr 2017 10:20:32 +0200 Subject: [PATCH] Less logs --- client.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.js b/client.js index 8355b625..cb6bb10e 100644 --- a/client.js +++ b/client.js @@ -402,9 +402,9 @@ function instanceManagement() { require('getmac').getMac(function (err, mac) { if (err) throw err payload.mac = mac - console.log("Registered our precense with master at " + payload.time); + console.log("Registered our precense with master "+config.masterPort+" at " + payload.time); needle.post(config.masterIP + ":" + config.masterPort + '/api/getID', payload, function (err, response, body) { - if (err){ + if (err && err.code != "ECONNRESET"){ console.error("We got problems, something went wrong when contacting master"); console.error(err); } else if (response && response.body) {