From 8803a737a5f90485351eb79dcada3fbd620d944b Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Fri, 23 Oct 2020 15:58:56 +0200 Subject: [PATCH] Fix 'Got no "ok"' log spam In 1bdf23d I incorrectly assumed that the response sent wouldn't matter as it hadn't sent a response in ages. That was not the case and the client code checks to see if the response is "ok" while .sendStatus(200) sends a response of "OK". Fix log spam by doing a case insensitive comparison of the response. --- client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.js b/client.js index 14e659f6..1c445ff0 100644 --- a/client.js +++ b/client.js @@ -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); }