mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-18 09:52:20 +00:00
fix(logs): call split on strings only
This commit is contained in:
parent
effb66a089
commit
b9bfb3f722
1 changed files with 4 additions and 2 deletions
|
|
@ -69,8 +69,10 @@ if (IS_PROD) {
|
|||
format: winston.format.combine(
|
||||
// Remove stacktrace from json, printed separately
|
||||
winston.format(info => {
|
||||
const message = info.message.split('\n')[0];
|
||||
info.message = message;
|
||||
if (info && info.message && typeof info.message.split === 'function') {
|
||||
const message = info.message.split('\n')[0];
|
||||
info.message = message;
|
||||
}
|
||||
return info;
|
||||
})(),
|
||||
winston.format.prettyPrint({
|
||||
|
|
|
|||
Loading…
Reference in a new issue