mirror of https://github.com/Chocobozzz/PeerTube
Upgrade dependencies
parent
c305467cd7
commit
3aa5cea8fe
824
client/yarn.lock
824
client/yarn.lock
File diff suppressed because it is too large
Load Diff
|
@ -1,7 +1,4 @@
|
|||
import * as program from 'commander'
|
||||
import { createReadStream } from 'fs'
|
||||
import { join } from 'path'
|
||||
import { createInterface } from 'readline'
|
||||
import { VideoModel } from '../server/models/video/video'
|
||||
import { initDatabaseModels } from '../server/initializers'
|
||||
import { JobQueue } from '../server/lib/job-queue'
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import * as program from 'commander'
|
||||
import { createReadStream } from 'fs'
|
||||
import { join } from 'path'
|
||||
import { createInterface } from 'readline'
|
||||
|
@ -5,6 +6,10 @@ import * as winston from 'winston'
|
|||
import { labelFormatter } from '../server/helpers/logger'
|
||||
import { CONFIG } from '../server/initializers/constants'
|
||||
|
||||
program
|
||||
.option('-l, --level [level]', 'Level log (debug/info/warn/error)')
|
||||
.parse(process.argv)
|
||||
|
||||
const excludedKeys = {
|
||||
level: true,
|
||||
message: true,
|
||||
|
@ -27,7 +32,7 @@ const loggerFormat = winston.format.printf((info) => {
|
|||
const logger = new winston.createLogger({
|
||||
transports: [
|
||||
new winston.transports.Console({
|
||||
level: 'debug',
|
||||
level: program['level'] || 'debug',
|
||||
stderrLevels: [],
|
||||
format: winston.format.combine(
|
||||
winston.format.splat(),
|
||||
|
|
Loading…
Reference in New Issue