diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-26 09:54:32 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-26 09:54:32 +0100 |
commit | 1e743faafeed89af13ee9dd3d62c1ceb696779cd (patch) | |
tree | 059b37295b8507ad9c858f19ed113cec44908a4b /scripts/parse-log.ts | |
parent | 448487a60216dcfe1ae29fa581cb31c726f1441b (diff) | |
download | PeerTube-1e743faafeed89af13ee9dd3d62c1ceb696779cd.tar.gz PeerTube-1e743faafeed89af13ee9dd3d62c1ceb696779cd.tar.zst PeerTube-1e743faafeed89af13ee9dd3d62c1ceb696779cd.zip |
Disable sql prettifier by default
It adds too much lines, leading to difficulties when reading dev logs
Diffstat (limited to 'scripts/parse-log.ts')
-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 | }) |