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:
parent
d979bd442e
commit
64ac53cef0
1 changed files with 6 additions and 3 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue