Fix prettyprint option for console backend

Pretty was using an invalid invocation of util.inspect(). Perhaps it was
valid pre-v0.10, but inspect now takes an options object.
This commit is contained in:
Sam Roberts 2014-10-01 20:14:15 -07:00
Родитель be2a3fb102
Коммит e74872cb91
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -33,7 +33,7 @@ ConsoleBackend.prototype.flush = function(timestamp, metrics) {
};
if(this.config.prettyprint) {
console.log(util.inspect(out, false, 5, true));
console.log(util.inspect(out, {depth: 5, colors: true}));
} else {
console.log(out);
}