mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
update winston ts error check
This commit is contained in:
parent
256d0ba59c
commit
d510bc7461
@ -9,6 +9,7 @@ const format = winston.format.combine(
|
||||
winston.format.colorize(),
|
||||
winston.format.printf(({ level, message, timestamp, ...meta }) => {
|
||||
const final: string[] = []
|
||||
// @ts-expect-error
|
||||
;[...message, meta].forEach((m: string) => {
|
||||
if (typeof m === 'string' && !!m.match(/\n/)) {
|
||||
final.push(...m.split(/\n/))
|
||||
|
Loading…
x
Reference in New Issue
Block a user