Apparently this happens a lot, don't put it in the logfile

This commit is contained in:
Calvin Montgomery 2015-01-06 10:58:15 -05:00
parent 414cbfdc5d
commit cf35c92391
2 changed files with 3 additions and 3 deletions

View File

@ -219,7 +219,7 @@ module.exports = {
} else {
var server = require("http").createServer().listen(bind.port, bind.ip);
server.on("clientError", function (err, socket) {
Logger.errlog.log("clientError on " + id + " - " + err);
console.error("clientError on " + id + " - " + err);
try {
socket.destroy();
} catch (e) {

View File

@ -86,7 +86,7 @@ var Server = function () {
self.servers[id] = https.createServer(opts, self.express)
.listen(bind.port, bind.ip);
self.servers[id].on("clientError", function (err, socket) {
Logger.errlog.log("clientError on " + id + " - " + err);
console.error("clientError on " + id + " - " + err);
try {
socket.destroy();
} catch (e) {
@ -95,7 +95,7 @@ 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) {
Logger.errlog.log("clientError on " + id + " - " + err);
console.error("clientError on " + id + " - " + err);
try {
socket.destroy();
} catch (e) {