зеркало из https://github.com/microsoft/statsd.git
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:
Родитель
be2a3fb102
Коммит
e74872cb91
|
@ -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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче