aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/parse-log.ts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/parse-log.ts')
-rwxr-xr-xscripts/parse-log.ts4
1 files changed, 2 insertions, 2 deletions
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 () {
79 // Don't know why but loggerFormat does not remove splat key 79 // Don't know why but loggerFormat does not remove splat key
80 Object.assign(log, { splat: undefined }) 80 Object.assign(log, { splat: undefined })
81 81
82 logLevels[ log.level ](log) 82 logLevels[log.level](log)
83 }) 83 })
84 84
85 stream.once('close', () => res()) 85 stream.once('close', () => res())
@@ -90,7 +90,7 @@ function run () {
90async function getNewestFile (files: string[], basePath: string) { 90async function getNewestFile (files: string[], basePath: string) {
91 const sorted = await mtimeSortFilesDesc(files, basePath) 91 const sorted = await mtimeSortFilesDesc(files, basePath)
92 92
93 return (sorted.length > 0) ? sorted[ 0 ].file : '' 93 return (sorted.length > 0) ? sorted[0].file : ''
94} 94}
95 95
96function toTimeFormat (time: string) { 96function toTimeFormat (time: string) {