1
0
Fork 0

Disable sql prettifier by default

It adds too much lines, leading to difficulties when reading dev logs
This commit is contained in:
Chocobozzz 2021-01-26 09:54:32 +01:00
parent 448487a602
commit 1e743faafe
No known key found for this signature in database
GPG key ID: 583A612D890159BE
5 changed files with 11 additions and 4 deletions

View file

@ -9,6 +9,7 @@ import * as winston from 'winston'
import { labelFormatter } from '../server/helpers/logger'
import { CONFIG } from '../server/initializers/config'
import { mtimeSortFilesDesc } from '../shared/core-utils/logs/logs'
import { inspect } from 'util'
program
.option('-l, --level [level]', 'Level log (debug/info/warn/error)')
@ -82,7 +83,7 @@ function run () {
logLevels[log.level](log)
} catch (err) {
console.error('Cannot parse line.', line)
console.error('Cannot parse line.', inspect(line))
throw err
}
})