Properly print err message, increase default ping rate to 3s from 2s.

This commit is contained in:
Cryptkeeper 2015-12-26 14:05:39 -06:00
parent 7ea8332a52
commit b31d66d1b3
2 changed files with 2 additions and 2 deletions

2
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.

@ -185,7 +185,7 @@
"rates": {
"upateMojangStatus": 5000,
"mojangStatusTimeout": 3500,
"pingAll": 2000,
"pingAll": 3000,
"connectTimeout": 1500
},
"logToDatabase": false,