diff options
Diffstat (limited to 'lib/util.js')
-rw-r--r-- | lib/util.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/util.js b/lib/util.js index 3a05337d92..58c7312c95 100644 --- a/lib/util.js +++ b/lib/util.js @@ -491,8 +491,9 @@ function timestamp() { } -exports.log = function(msg) { - exports.puts(timestamp() + ' - ' + msg.toString()); +// log is just a thin wrapper to console.log that prepends a timestamp +exports.log = function() { + console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments)); }; |