aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/parse-log.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-01-03 17:13:11 +0100
committerChocobozzz <me@florianbigard.com>2022-01-06 08:26:14 +0100
commitf8360396ffabd2f95e9ece9c5755173bae0114b6 (patch)
tree83467f70bb5d5c2faa61c45e1d87b538c6c8fe5e /scripts/parse-log.ts
parentcea093bca5b9d311b5c1d0539d53e965c901015b (diff)
downloadPeerTube-f8360396ffabd2f95e9ece9c5755173bae0114b6.tar.gz
PeerTube-f8360396ffabd2f95e9ece9c5755173bae0114b6.tar.zst
PeerTube-f8360396ffabd2f95e9ece9c5755173bae0114b6.zip
Stop using tsconfig register
Prefer to replace paths at compile time
Diffstat (limited to 'scripts/parse-log.ts')
-rwxr-xr-xscripts/parse-log.ts7
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 @@
1import { registerTSPaths } from '../server/helpers/register-ts-paths'
2registerTSPaths()
3
4import { program } from 'commander' 1import { program } from 'commander'
5import { createReadStream, readdir } from 'fs-extra' 2import { createReadStream, readdir } from 'fs-extra'
6import { join } from 'path' 3import { join } from 'path'
7import { createInterface } from 'readline' 4import { createInterface } from 'readline'
5import { format as sqlFormat } from 'sql-formatter'
6import { inspect } from 'util'
8import * as winston from 'winston' 7import * as winston from 'winston'
9import { labelFormatter, mtimeSortFilesDesc } from '../server/helpers/logger' 8import { labelFormatter, mtimeSortFilesDesc } from '../server/helpers/logger'
10import { CONFIG } from '../server/initializers/config' 9import { CONFIG } from '../server/initializers/config'
11import { inspect } from 'util'
12import { format as sqlFormat } from 'sql-formatter'
13 10
14program 11program
15 .option('-l, --level [level]', 'Level log (debug/info/warn/error)') 12 .option('-l, --level [level]', 'Level log (debug/info/warn/error)')