mirror of https://github.com/calzoneman/sync.git
Apparently this happens a lot, don't put it in the logfile
This commit is contained in:
parent
414cbfdc5d
commit
cf35c92391
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue