From f013c5b1119ed4e8bc1fc680f3582b13db76adbb Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Sun, 2 Sep 2018 22:26:57 -0600 Subject: [PATCH] fix: make prettyPrint always add a newline --- server/logging/prettyPrint.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/logging/prettyPrint.ts b/server/logging/prettyPrint.ts index 199a893..21fb658 100644 --- a/server/logging/prettyPrint.ts +++ b/server/logging/prettyPrint.ts @@ -62,7 +62,6 @@ function formatter(value: any) { } else { line += filter(value); } - line += "\n"; return line; } @@ -146,7 +145,7 @@ class PrettyPrintTranform extends Transform { if (!line) { return cb(); } - process.stdout.write(line); + process.stdout.write(line + "\n"); cb(); } }