Skip to content

Commit

Permalink
Removing console log and setting very low log level
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamrege committed Mar 3, 2012
1 parent 32467c0 commit 28de491
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notify.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ var express = require('express')
, redis = require('redis')
, io = require('socket.io').listen(app);

io.set('log level', 1); // reduce logging

app.use(express.bodyParser());
app.use(express.static(__dirname + '/public'));
app.set('view engine', 'jade');
Expand Down Expand Up @@ -49,7 +51,6 @@ app.get('/game/:gameid/:nick', function (req, res) {


io.sockets.on('connection', function(socket) {
console.log("connected..");
const subscribe = redis.createClient();
const publish = redis.createClient();

Expand All @@ -58,7 +59,6 @@ io.sockets.on('connection', function(socket) {
});

socket.on('psubscribe', function(channel) {
console.log('subscribe: ' + channel);
subscribe.psubscribe(channel);
});

Expand Down

0 comments on commit 28de491

Please sign in to comment.