Permalink
Browse files

Allow multiple arguments to debug.log.

  • Loading branch information...
1 parent 3eca541 commit b5015640c3b59db6c39f23ea3b3e52fa7adf90c2 @Connorhd committed Feb 23, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 debug.js
View
@@ -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];

0 comments on commit b501564

Please sign in to comment.