diff options
| -rw-r--r-- | webAO/master.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/webAO/master.js b/webAO/master.js index bc0111e..4862a74 100644 --- a/webAO/master.js +++ b/webAO/master.js @@ -116,10 +116,6 @@ function checkOnline(serverID, coIP) { } } - function onCOError(_e) { - console.warn(coIP + " threw an error."); - } - // assign the callbacks oserv.onopen = function (evt) { onCOOpen(evt); @@ -129,8 +125,8 @@ function checkOnline(serverID, coIP) { onCOMessage(evt); }; - oserv.onerror = function (evt) { - onCOError(evt); + oserv.onerror = function (_evt) { + console.warn(coIP + " threw an error."); }; } @@ -138,7 +134,7 @@ function checkOnline(serverID, coIP) { function onMessage(e) { const msg = e.data; const header = msg.split("#", 2)[0]; - console.log(header); + console.debug(msg); if (header === "ALL") { const servers = msg.split("#").slice(1); |
