diff options
| author | stonedDiscord <10584181+stonedDiscord@users.noreply.github.com> | 2020-09-27 17:36:56 +0200 |
|---|---|---|
| committer | stonedDiscord <10584181+stonedDiscord@users.noreply.github.com> | 2020-09-27 17:36:56 +0200 |
| commit | b95fe7317d5c999b0b74f2581bcc8d1696faa896 (patch) | |
| tree | 501a148fb481d5b0d6aedfd9fe9494cdd6b1d943 /webAO | |
| parent | caf624586706a44029f0ef447e3d53c383c96dc5 (diff) | |
shorten the COerror and send message logs to debug
Diffstat (limited to 'webAO')
| -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); |
