Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Colibris
framemo
Commits
e9e752c5
Commit
e9e752c5
authored
Dec 08, 2013
by
ali asaria
Browse files
remove all console.log logging
parent
5bf62943
Changes
3
Show whitespace changes
Inline
Side-by-side
lib/data/redis.js
View file @
e9e752c5
...
...
@@ -104,7 +104,7 @@ db.prototype = {
for
(
i
in
res
)
{
cards
.
push
(
JSON
.
parse
(
res
[
i
])
);
}
console
.
dir
(
cards
);
//
console.dir(cards);
callback
(
cards
);
});
...
...
lib/rooms.js
View file @
e9e752c5
...
...
@@ -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
);
}
}
server.js
View file @
e9e752c5
...
...
@@ -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!
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment