From: Jack Allnutt Date: Sun, 11 Dec 2011 15:29:22 +0000 (+0000) Subject: error hunting£ X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ae51840838b89b12f2668db6a7e6e1d1be1d9f0b;p=KiwiIRC.git error hunting£ --- diff --git a/client/js/front.events.js b/client/js/front.events.js index 05bca87..a4b6712 100644 --- a/client/js/front.events.js +++ b/client/js/front.events.js @@ -595,7 +595,7 @@ kiwi.front.events = { break; default: // We don't know what data contains, so don't do anything with it. - //kiwi.front.tabviews.server.addMsg(null, ' ', '=== ' + data, 'status'); + console.log(e, data); } }, diff --git a/client/js/gateway.js b/client/js/gateway.js index 37fec1a..e7a9a51 100644 --- a/client/js/gateway.js +++ b/client/js/gateway.js @@ -119,6 +119,7 @@ kiwi.gateway = { kiwi.gateway.socket.on('reconnect_failed', function () { console.log("kiwi.gateway.socket.on('reconnect_failed')"); }); + kiwi.gateway.socket.on('error', console.log); } }, diff --git a/server/app.js b/server/app.js index 36d2213..e9278e8 100644 --- a/server/app.js +++ b/server/app.js @@ -793,6 +793,7 @@ this.websocketListen = function (servers, handler) { } callback(null, true); }).on('connection', kiwi.websocketConnection); + io.of('/kiwi').on('error', console.log); }); }; @@ -840,6 +841,7 @@ this.websocketConnection = function (websocket) { }); websocket.on('message', kiwi.websocketMessage); websocket.on('disconnect', kiwi.websocketDisconnect); + websocket.on('error', console.log); } }; @@ -990,6 +992,9 @@ this.IRCConnection = function (websocket, nick, host, port, ssl, password, callb }); bound_events = kiwi.bindIRCCommands(that, websocket); }; + + that.on('error', console.log); + };