X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fparse-log.ts;h=58e052b9f6c3ec364358e4fca62176a03e34e090;hb=09c55770bcc96785fb1f199b4cd8ce66b545486a;hp=26049b54d993e9f24753ed26bfc9e7dbe1ec8d95;hpb=1b05d82d861f42c27766e9f24d8d55e68b0cf098;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/parse-log.ts b/scripts/parse-log.ts index 26049b54d..58e052b9f 100755 --- a/scripts/parse-log.ts +++ b/scripts/parse-log.ts @@ -79,7 +79,7 @@ function run () { // Don't know why but loggerFormat does not remove splat key Object.assign(log, { splat: undefined }) - logLevels[ log.level ](log) + logLevels[log.level](log) }) stream.once('close', () => res()) @@ -90,7 +90,7 @@ function run () { async function getNewestFile (files: string[], basePath: string) { const sorted = await mtimeSortFilesDesc(files, basePath) - return (sorted.length > 0) ? sorted[ 0 ].file : '' + return (sorted.length > 0) ? sorted[0].file : '' } function toTimeFormat (time: string) {