Skip to content

Commit

Permalink
Allow multiple arguments to debug.log.
Browse files Browse the repository at this point in the history
  • Loading branch information
Connorhd committed Feb 23, 2010
1 parent 3eca541 commit b501564
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions debug.js
Expand Up @@ -83,6 +83,12 @@ function closeReq (res) {
}

debug.log = function (msg) {
if (arguments.length > 1) {
for (i = 0; i < arguments.length; i++) {
debug.log(arguments[i]);
}
return;
}
for (var id in sessions) {
if (!sessions.hasOwnProperty(id)) continue;
var session = sessions[id];
Expand Down

0 comments on commit b501564

Please sign in to comment.