0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

🐛 Short log still needs data.msg (#7532)

- to see the problem, migrate a fresh DB in short mode
- this would output [INFO] but no info!
This commit is contained in:
Hannah Wolfe 2016-10-10 15:55:39 +01:00 committed by Katharina Irrgang
parent d979bd442e
commit 64ac53cef0

View file

@ -116,9 +116,6 @@ PrettyStream.prototype.write = function write(data) {
bodyPretty += colorize('white', value) + '\n';
}
});
} else {
// print string
bodyPretty += data.msg;
}
try {
@ -136,6 +133,12 @@ PrettyStream.prototype.write = function write(data) {
time,
logLevel
);
} else if (data.msg) {
output += format('[%s] %s %s\n',
time,
logLevel,
data.msg
);
} else {
output += format('[%s] %s\n',
time,