aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/parse-log.ts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/parse-log.ts')
-rwxr-xr-xscripts/parse-log.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/parse-log.ts b/scripts/parse-log.ts
index eb3534e5e..065fe7e82 100755
--- a/scripts/parse-log.ts
+++ b/scripts/parse-log.ts
@@ -9,6 +9,7 @@ import * as winston from 'winston'
9import { labelFormatter } from '../server/helpers/logger' 9import { labelFormatter } from '../server/helpers/logger'
10import { CONFIG } from '../server/initializers/config' 10import { CONFIG } from '../server/initializers/config'
11import { mtimeSortFilesDesc } from '../shared/core-utils/logs/logs' 11import { mtimeSortFilesDesc } from '../shared/core-utils/logs/logs'
12import { inspect } from 'util'
12 13
13program 14program
14 .option('-l, --level [level]', 'Level log (debug/info/warn/error)') 15 .option('-l, --level [level]', 'Level log (debug/info/warn/error)')
@@ -82,7 +83,7 @@ function run () {
82 83
83 logLevels[log.level](log) 84 logLevels[log.level](log)
84 } catch (err) { 85 } catch (err) {
85 console.error('Cannot parse line.', line) 86 console.error('Cannot parse line.', inspect(line))
86 throw err 87 throw err
87 } 88 }
88 }) 89 })