From b95fe7317d5c999b0b74f2581bcc8d1696faa896 Mon Sep 17 00:00:00 2001 From: stonedDiscord <10584181+stonedDiscord@users.noreply.github.com> Date: Sun, 27 Sep 2020 17:36:56 +0200 Subject: shorten the COerror and send message logs to debug --- webAO/master.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'webAO/master.js') 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); -- cgit