From 4f3a7c47e38b4dc153d5800872e8961532bcf8c2 Mon Sep 17 00:00:00 2001 From: kPherox Date: Mon, 22 Apr 2019 03:33:56 +0900 Subject: [PATCH] Change console log level --- app/js/tl/mix.js | 16 ++++++++++------ app/js/tl/tl.js | 4 ++-- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/app/js/tl/mix.js b/app/js/tl/mix.js index 5f01d6fe..7b2ea0e0 100644 --- a/app/js/tl/mix.js +++ b/app/js/tl/mix.js @@ -94,12 +94,14 @@ function mixre(acct_id, tlid, TLtype, mute,delc,voice,mode) { websocketLocal[wslid] = new WebSocket(startLocal); websocketHome[wshid].onopen = function(mess) { localStorage.setItem("wssH_" + tlid, wshid); - console.log("Connect Streaming API(Integrated:Home)"); + console.log(tlid + ":Connect Streaming API(Integrated:Home)"); + console.log(mess); $("#notice_icon_" + tlid).removeClass("red-text"); } websocketLocal[wslid].onopen = function(mess) { localStorage.setItem("wssL_" + tlid, wslid); - console.log("Connect Streaming API(Integrated:Local)"); + console.log(tlid + ":Connect Streaming API(Integrated:Local)"); + console.log(mess); $("#notice_icon_" + tlid).removeClass("red-text"); } websocketLocal[wslid].onmessage = function(mess) { @@ -195,7 +197,8 @@ function mixre(acct_id, tlid, TLtype, mute,delc,voice,mode) { } } websocketLocal[wslid].onerror = function(error) { - console.error('WebSocket Error ' + error); + console.error('WebSocketLocal Error') + console.error(error); if(mode=="error"){ $("#notice_icon_" + tlid).addClass("red-text"); todo('WebSocket Error ' + error); @@ -208,7 +211,7 @@ function mixre(acct_id, tlid, TLtype, mute,delc,voice,mode) { } }; websocketLocal[wslid].onclose = function() { - console.error('WebSocketLocal Closing by error:' + tlid); + console.log('WebSocketLocal Closing:' + tlid); if(mode=="error"){ $("#notice_icon_" + tlid).addClass("red-text"); todo('WebSocket Closed'); @@ -221,7 +224,8 @@ function mixre(acct_id, tlid, TLtype, mute,delc,voice,mode) { } }; websocketHome[wshid].onerror = function(error) { - console.error('WebSocket Error ' + error); + console.error('WebSocketHome Error') + console.error(error); if(mode=="error"){ $("#notice_icon_" + tlid).addClass("red-text"); todo('WebSocket Error ' + error); @@ -234,7 +238,7 @@ function mixre(acct_id, tlid, TLtype, mute,delc,voice,mode) { } }; websocketHome[wshid].onclose = function() { - console.error('WebSocketHome Closing by error:' + tlid); + console.log('WebSocketHome Closing:' + tlid); if(mode=="error"){ $("#notice_icon_" + tlid).addClass("red-text"); todo('WebSocket Closed'); diff --git a/app/js/tl/tl.js b/app/js/tl/tl.js index 9d03a338..b141e791 100644 --- a/app/js/tl/tl.js +++ b/app/js/tl/tl.js @@ -337,8 +337,8 @@ function reload(type, cc, acct_id, tlid, data, mute, delc, voice, mode) { return false; }; websocket[wsid].onclose = function() { - console.error("Closing"); - console.error(tlid); + console.log("Closing"); + console.log(tlid); if(mode=="error"){ $("#notice_icon_" + tlid).addClass("red-text"); todo('WebSocket Closed');