diff options
Diffstat (limited to 'scripts/parse-log.ts')
-rwxr-xr-x | scripts/parse-log.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/scripts/parse-log.ts b/scripts/parse-log.ts index 6cd3a1860..d3c93cee5 100755 --- a/scripts/parse-log.ts +++ b/scripts/parse-log.ts | |||
@@ -1,15 +1,12 @@ | |||
1 | import { registerTSPaths } from '../server/helpers/register-ts-paths' | ||
2 | registerTSPaths() | ||
3 | |||
4 | import { program } from 'commander' | 1 | import { program } from 'commander' |
5 | import { createReadStream, readdir } from 'fs-extra' | 2 | import { createReadStream, readdir } from 'fs-extra' |
6 | import { join } from 'path' | 3 | import { join } from 'path' |
7 | import { createInterface } from 'readline' | 4 | import { createInterface } from 'readline' |
5 | import { format as sqlFormat } from 'sql-formatter' | ||
6 | import { inspect } from 'util' | ||
8 | import * as winston from 'winston' | 7 | import * as winston from 'winston' |
9 | import { labelFormatter, mtimeSortFilesDesc } from '../server/helpers/logger' | 8 | import { labelFormatter, mtimeSortFilesDesc } from '../server/helpers/logger' |
10 | import { CONFIG } from '../server/initializers/config' | 9 | import { CONFIG } from '../server/initializers/config' |
11 | import { inspect } from 'util' | ||
12 | import { format as sqlFormat } from 'sql-formatter' | ||
13 | 10 | ||
14 | program | 11 | program |
15 | .option('-l, --level [level]', 'Level log (debug/info/warn/error)') | 12 | .option('-l, --level [level]', 'Level log (debug/info/warn/error)') |