aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-01-26 09:54:32 +0100
committerChocobozzz <me@florianbigard.com>2021-01-26 09:54:32 +0100
commit1e743faafeed89af13ee9dd3d62c1ceb696779cd (patch)
tree059b37295b8507ad9c858f19ed113cec44908a4b /scripts
parent448487a60216dcfe1ae29fa581cb31c726f1441b (diff)
downloadPeerTube-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')
-rwxr-xr-xscripts/parse-log.ts3
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'
9import { labelFormatter } from '../server/helpers/logger' 9import { labelFormatter } from '../server/helpers/logger'
10import { CONFIG } from '../server/initializers/config' 10import { CONFIG } from '../server/initializers/config'
11import { mtimeSortFilesDesc } from '../shared/core-utils/logs/logs' 11import { mtimeSortFilesDesc } from '../shared/core-utils/logs/logs'
12import { inspect } from 'util'
12 13
13program 14program
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 })