Disable sql prettifier by default
It adds too much lines, leading to difficulties when reading dev logs
This commit is contained in:
parent
448487a602
commit
1e743faafe
5 changed files with 11 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue