From 5b145d5a382778e24438098bf64ccc7067f08ea0 Mon Sep 17 00:00:00 2001 From: Goran Gajic Date: Tue, 25 Aug 2015 15:39:30 +0200 Subject: [PATCH] move ms to the last place --- node.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/node.js b/node.js index 1d392a81..0532c857 100644 --- a/node.js +++ b/node.js @@ -80,7 +80,7 @@ exports.formatters.o = function(v) { */ function formatArgs() { - var args = arguments; + var args = Array.prototype.slice.call(arguments); var useColors = this.useColors; var name = this.namespace; @@ -89,8 +89,8 @@ function formatArgs() { args[0] = ' \u001b[3' + c + ';1m' + name + ' ' + '\u001b[0m' - + args[0] + '\u001b[3' + c + 'm' - + ' +' + exports.humanize(this.diff) + '\u001b[0m'; + + args[0]; + args.push('\u001b[3' + c + 'm+' + exports.humanize(this.diff) + '\u001b[0m'); } else { args[0] = new Date().toUTCString() + ' ' + name + ' ' + args[0];