From b31d66d1b3c5454253d731a4cb5609bc8b1aeb35 Mon Sep 17 00:00:00 2001 From: Cryptkeeper Date: Sat, 26 Dec 2015 14:05:39 -0600 Subject: [PATCH] Properly print err message, increase default ping rate to 3s from 2s. --- app.js | 2 +- config.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.js b/app.js index 227fa42..b522c2c 100644 --- a/app.js +++ b/app.js @@ -22,7 +22,7 @@ function pingAll() { ping.ping(network.ip, network.port, network.type, config.rates.connectTimeout, function(err, res) { // Handle our ping results, if it succeeded. if (err) { - logger.log('error', 'Failed to ping ' + network.ip + ': ' + JSON.stringify(err)); + logger.log('error', 'Failed to ping ' + network.ip + ': ' + err.message); } // If we have favicon override specified, use it. diff --git a/config.json b/config.json index 46339dc..c64f529 100644 --- a/config.json +++ b/config.json @@ -185,7 +185,7 @@ "rates": { "upateMojangStatus": 5000, "mojangStatusTimeout": 3500, - "pingAll": 2000, + "pingAll": 3000, "connectTimeout": 1500 }, "logToDatabase": false,