Merge pull request #324 from Hornwitser/fix-log-spam

Fix 'Got no "ok"' log spam
This commit is contained in:
Hornwitser authored and GitHub committed 2020-10-27 00:44:18 +01:00
commit 3d8cfef8bc
1 file changed
+1 -1
+1 -1
View File
@@ -716,7 +716,7 @@ async function instanceManagement(instanceconfig) {
console.error(err);
} else 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.
if(response.body !== "ok") {
if (response.body.toLowerCase() !== "ok") {
console.log("Got no \"ok\" while registering our precense with master "+config.masterIP+" at " + payload.time);
console.log(response.body);
}