Skip to content

Commit

Permalink
🐛 Short log still needs data.msg (#7532)
Browse files Browse the repository at this point in the history
- to see the problem, migrate a fresh DB in short mode
- this would output [INFO] but no info!
  • Loading branch information
ErisDS authored and kirrg001 committed Oct 10, 2016
1 parent d979bd4 commit 64ac53c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions core/server/logging/PrettyStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,6 @@ PrettyStream.prototype.write = function write(data) {
bodyPretty += colorize('white', value) + '\n';
}
});
} else {
// print string
bodyPretty += data.msg;
}

try {
Expand All @@ -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,
Expand Down

0 comments on commit 64ac53c

Please sign in to comment.