mirror of
https://github.com/pockethost/pockethost.git
synced 2025-06-06 22:26:45 +00:00
enh: improve winston console output
This commit is contained in:
parent
9e2c8a3cba
commit
0a2ab02fad
@ -17,7 +17,13 @@ const format = winston.format.combine(
|
|||||||
const filtered = Object.fromEntries(
|
const filtered = Object.fromEntries(
|
||||||
Object.entries(m).filter(([key]) => typeof key === 'string'),
|
Object.entries(m).filter(([key]) => typeof key === 'string'),
|
||||||
)
|
)
|
||||||
final.push(inspect(filtered, { depth: null }))
|
final.push(
|
||||||
|
inspect(filtered, {
|
||||||
|
depth: null,
|
||||||
|
compact: true,
|
||||||
|
breakLength: Infinity,
|
||||||
|
}),
|
||||||
|
)
|
||||||
} else {
|
} else {
|
||||||
final.push(m)
|
final.push(m)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user