diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/parse-log.ts | 3 |
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' | |||
9 | import { labelFormatter } from '../server/helpers/logger' | 9 | import { labelFormatter } from '../server/helpers/logger' |
10 | import { CONFIG } from '../server/initializers/config' | 10 | import { CONFIG } from '../server/initializers/config' |
11 | import { mtimeSortFilesDesc } from '../shared/core-utils/logs/logs' | 11 | import { mtimeSortFilesDesc } from '../shared/core-utils/logs/logs' |
12 | import { inspect } from 'util' | ||
12 | 13 | ||
13 | program | 14 | program |
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 | }) |