🐛 logging: error output format (#7546)

no issue
- the format for standalone error was wrong
This commit is contained in:
Katharina Irrgang 2016-10-11 20:03:14 +02:00 committed by Hannah Wolfe
parent 677502813e
commit 50f383ef0b
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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();
};