mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
🐛 logging: error output format (#7546)
no issue - the format for standalone error was wrong
This commit is contained in:
parent
677502813e
commit
50f383ef0b
@ -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
|
||||
|
@ -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();
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user