Properly print err message, increase default ping rate to 3s from 2s.
This commit is contained in:
parent
7ea8332a52
commit
b31d66d1b3
2
app.js
2
app.js
@ -22,7 +22,7 @@ function pingAll() {
|
|||||||
ping.ping(network.ip, network.port, network.type, config.rates.connectTimeout, function(err, res) {
|
ping.ping(network.ip, network.port, network.type, config.rates.connectTimeout, function(err, res) {
|
||||||
// Handle our ping results, if it succeeded.
|
// Handle our ping results, if it succeeded.
|
||||||
if (err) {
|
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.
|
// If we have favicon override specified, use it.
|
||||||
|
@ -185,7 +185,7 @@
|
|||||||
"rates": {
|
"rates": {
|
||||||
"upateMojangStatus": 5000,
|
"upateMojangStatus": 5000,
|
||||||
"mojangStatusTimeout": 3500,
|
"mojangStatusTimeout": 3500,
|
||||||
"pingAll": 2000,
|
"pingAll": 3000,
|
||||||
"connectTimeout": 1500
|
"connectTimeout": 1500
|
||||||
},
|
},
|
||||||
"logToDatabase": false,
|
"logToDatabase": false,
|
||||||
|
Loading…
Reference in New Issue
Block a user