From 50f383ef0b2f2e9e6d8326251cb7b60c7c64e8f7 Mon Sep 17 00:00:00 2001 From: Katharina Irrgang Date: Tue, 11 Oct 2016 20:03:14 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=20logging:=20error=20output=20f?= =?UTF-8?q?ormat=20(#7546)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit no issue - the format for standalone error was wrong --- core/server/logging/PrettyStream.js | 2 +- core/test/unit/logging/PrettyStream_spec.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/server/logging/PrettyStream.js b/core/server/logging/PrettyStream.js index b06dfd4c90..c1cf625be0 100644 --- a/core/server/logging/PrettyStream.js +++ b/core/server/logging/PrettyStream.js @@ -127,7 +127,7 @@ PrettyStream.prototype.write = function write(data) { } }); - output += format('[%s] %s\n%\n', + output += format('[%s] %s\n%s\n', time, logLevel, bodyPretty diff --git a/core/test/unit/logging/PrettyStream_spec.js b/core/test/unit/logging/PrettyStream_spec.js index 04bbcf6ca3..3c7e6841af 100644 --- a/core/test/unit/logging/PrettyStream_spec.js +++ b/core/test/unit/logging/PrettyStream_spec.js @@ -25,7 +25,7 @@ describe('PrettyStream', function () { var ghostPrettyStream = new GhostPrettyStream({mode: 'short'}); ghostPrettyStream.emit = function (eventName, data) { - data.should.eql('[2016-07-01 00:00:00] \u001b[31mERROR\u001b[39m\n%\n \u001b[4mlevel:normal\u001b[24m\n\u001b[31mHey Jude!\u001b[39m\n'); + data.should.eql('[2016-07-01 00:00:00] \u001b[31mERROR\u001b[39m\n\u001b[4mlevel:normal\u001b[24m\n\u001b[31mHey Jude!\u001b[39m\n\n'); done(); }; @@ -106,7 +106,7 @@ describe('PrettyStream', function () { var ghostPrettyStream = new GhostPrettyStream({mode: 'long'}); ghostPrettyStream.emit = function (eventName, data) { - data.should.eql('[2016-07-01 00:00:00] \u001b[31mERROR\u001b[39m\n%\n \u001b[4mlevel:normal\u001b[24m\n\u001b[31mHey Jude!\u001b[39m\n'); + data.should.eql('[2016-07-01 00:00:00] \u001b[31mERROR\u001b[39m\n\u001b[4mlevel:normal\u001b[24m\n\u001b[31mHey Jude!\u001b[39m\n\n'); done(); };