2
0
Connor Peet 10 жил өмнө
parent
commit
ab66fac3a6
1 өөрчлөгдсөн 5 нэмэгдсэн , 2 устгасан
  1. 5 2
      modules/logging.js

+ 5 - 2
modules/logging.js

@@ -4,7 +4,10 @@ var exp = {};
 
 function log() {
   var time = new Date().toISOString();
-  var text = Array.prototype.slice.call(arguments).join(" ");
+  var text = '';
+  for (var i = 0, l = arguments.length; i < l; i++) {
+    text += ' ' + arguments[i];
+  }
   console.log(time + ": " + text);
 }
 
@@ -17,4 +20,4 @@ if (config.debug_enabled) {
   exp.debug = function(){};
 }
 
-module.exports = exp;
+module.exports = exp;