From 23333ee2660e2b5625137445fe9fddf537dc93f5 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Fri, 30 Oct 2015 22:26:20 -0700 Subject: [PATCH] Remove console logging of clientErrors from HTTP/socket.io --- src/io/ioserver.js | 1 - src/server.js | 2 -- 2 files changed, 3 deletions(-) diff --git a/src/io/ioserver.js b/src/io/ioserver.js index 30af3b18..a34007bd 100644 --- a/src/io/ioserver.js +++ b/src/io/ioserver.js @@ -228,7 +228,6 @@ module.exports = { } else { var server = require("http").createServer().listen(bind.port, bind.ip); server.on("clientError", function (err, socket) { - console.error("clientError on " + id + " - " + err); try { socket.destroy(); } catch (e) { diff --git a/src/server.js b/src/server.js index 31e5bfbe..6419fee6 100644 --- a/src/server.js +++ b/src/server.js @@ -96,7 +96,6 @@ var Server = function () { self.servers[id] = https.createServer(opts, self.express) .listen(bind.port, bind.ip); self.servers[id].on("clientError", function (err, socket) { - console.error("clientError on " + id + " - " + err); try { socket.destroy(); } catch (e) { @@ -105,7 +104,6 @@ var Server = function () { } else if (bind.http) { self.servers[id] = self.express.listen(bind.port, bind.ip); self.servers[id].on("clientError", function (err, socket) { - console.error("clientError on " + id + " - " + err); try { socket.destroy(); } catch (e) {