Skip to content

Commit

Permalink
possible fix for socket.io logging error
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jan 7, 2012
1 parent c8239bc commit 3ad3c22
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions lib/stream_socketio.js
Expand Up @@ -53,7 +53,15 @@ module.exports = function (webserver, mount, ioOptions) {
}

var sock = io.listen(webserver, ioOptions);
sock.set('logger', {
error : function () {},
warn : function () {},
info : function () {},
debug : function () {}
});

var server = new EventEmitter;
server.socket = sock;

if (mount && webserver.use) {
webserver.use(function (req, res, next) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name" : "dnode",
"version" : "0.9.3",
"version" : "0.9.4",
"description" : "freestyle RPC",
"main" : "./index.js",
"keywords" : [
Expand Down

0 comments on commit 3ad3c22

Please sign in to comment.