X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fparse-log.ts;h=9e6653ca3ed73d42712b289153902a10343b9b58;hb=b5206dfc455c119b0dcb897bd7144be6ea4d999d;hp=fe87db009b685324720a820e5cf884139686d264;hpb=74dc3bca2b14f5fd3fe80c394dfc34177a46db77;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/parse-log.ts b/scripts/parse-log.ts index fe87db009..9e6653ca3 100755 --- a/scripts/parse-log.ts +++ b/scripts/parse-log.ts @@ -1,3 +1,6 @@ +import { registerTSPaths } from '../server/helpers/register-ts-paths' +registerTSPaths() + import * as program from 'commander' import { createReadStream, readdir } from 'fs-extra' import { join } from 'path' @@ -5,7 +8,7 @@ import { createInterface } from 'readline' import * as winston from 'winston' import { labelFormatter } from '../server/helpers/logger' import { CONFIG } from '../server/initializers/config' -import { mtimeSortFilesDesc } from '../shared/utils/logs/logs' +import { mtimeSortFilesDesc } from '../shared/core-utils/logs/logs' program .option('-l, --level [level]', 'Level log (debug/info/warn/error)')