Skip to content

Commit

Permalink
move ms to the last place
Browse files Browse the repository at this point in the history
  • Loading branch information
gorangajic committed Oct 27, 2016
1 parent fefdae5 commit dafc16e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions node.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,21 @@ exports.formatters.o = function(v) {
*/

function formatArgs() {
var args = arguments;
var args = [];
var len = arguments.length;
var useColors = this.useColors;
var name = this.namespace;
for (var i = 0; i < len; i++) {
args.push(arguments[i]);
}

if (useColors) {
var c = this.color;

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];
Expand Down

0 comments on commit dafc16e

Please sign in to comment.