Permalink
Browse files

remove all console.log logging

  • Loading branch information...
1 parent 5bf6294 commit e9e752c5e45f1b1cc43a6bb4dac9d5a85d3fa899 @aliasaria committed Dec 8, 2013
Showing with 8 additions and 6 deletions.
  1. +1 −1 lib/data/redis.js
  2. +5 −5 lib/rooms.js
  3. +2 −0 server.js
View
@@ -104,7 +104,7 @@ db.prototype = {
for (i in res) {
cards.push( JSON.parse(res[i]) );
}
- console.dir(cards);
+ //console.dir(cards);
callback(cards);
});
View
@@ -61,7 +61,7 @@ exports.remove_from_all_rooms = function (client, callback) {
}
}
}
- console.log('Client ' + client.username + ' (' + client.id + ') disconnected.');
+ //console.log('Client ' + client.username + ' (' + client.id + ') disconnected.');
delete sid_rooms[client.id];
callback(affected_clients.array());
}
@@ -108,10 +108,10 @@ exports.room_clients_other_than_me = function(room, client) {
if (rooms.hasOwnProperty(room))
{
var clients = rooms[room];
- console.dir(clients.array());
+ //console.dir(clients.array());
clients.remove(client);
- console.dir(clients.array());
+ //console.dir(clients.array());
return clients.array();
}
else
@@ -218,12 +218,12 @@ exports.broadcast_to_roommates = function (client, msg) {
roommates.remove(client);
roommates = roommates.array();
- console.log('client: ' + client.id + " is broadcasting to: ");
+ //console.log('client: ' + client.id + " is broadcasting to: ");
for (var i = 0; i < roommates.length; i++)
{
- console.log(' - ' + roommates[i].id);
+ //console.log(' - ' + roommates[i].id);
roommates[i].json.send(msg);
}
}
View
@@ -85,6 +85,8 @@ io.configure(function () {
// , 'xhr-polling'
, 'jsonp-polling'
]);
+
+ io.set('log level', 1);
});
io.sockets.on('connection', function (client) {
// new client is here!

0 comments on commit e9e752c

Please sign in to comment.