Skip to content

Commit

Permalink
added warning message from default error event handler
Browse files Browse the repository at this point in the history
  • Loading branch information
einaros committed Oct 23, 2011
1 parent 79c3d84 commit c1e64b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/socket.io.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ exports.listen = function (server, options, fn) {
server = require('http').createServer();

// default error handler
server.on('error', function() { });
server.on('error', function(err) {
this.log.warn('error: "' + err + '"');
});

// default response
server.on('request', function (req, res) {
Expand Down

0 comments on commit c1e64b9

Please sign in to comment.