Upgrade dependencies
This commit is contained in:
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 * as program from 'commander'
|
||||||
import { createReadStream } from 'fs'
|
|
||||||
import { join } from 'path'
|
|
||||||
import { createInterface } from 'readline'
|
|
||||||
import { VideoModel } from '../server/models/video/video'
|
import { VideoModel } from '../server/models/video/video'
|
||||||
import { initDatabaseModels } from '../server/initializers'
|
import { initDatabaseModels } from '../server/initializers'
|
||||||
import { JobQueue } from '../server/lib/job-queue'
|
import { JobQueue } from '../server/lib/job-queue'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import * as program from 'commander'
|
||||||
import { createReadStream } from 'fs'
|
import { createReadStream } from 'fs'
|
||||||
import { join } from 'path'
|
import { join } from 'path'
|
||||||
import { createInterface } from 'readline'
|
import { createInterface } from 'readline'
|
||||||
|
@ -5,6 +6,10 @@ import * as winston from 'winston'
|
||||||
import { labelFormatter } from '../server/helpers/logger'
|
import { labelFormatter } from '../server/helpers/logger'
|
||||||
import { CONFIG } from '../server/initializers/constants'
|
import { CONFIG } from '../server/initializers/constants'
|
||||||
|
|
||||||
|
program
|
||||||
|
.option('-l, --level [level]', 'Level log (debug/info/warn/error)')
|
||||||
|
.parse(process.argv)
|
||||||
|
|
||||||
const excludedKeys = {
|
const excludedKeys = {
|
||||||
level: true,
|
level: true,
|
||||||
message: true,
|
message: true,
|
||||||
|
@ -27,7 +32,7 @@ const loggerFormat = winston.format.printf((info) => {
|
||||||
const logger = new winston.createLogger({
|
const logger = new winston.createLogger({
|
||||||
transports: [
|
transports: [
|
||||||
new winston.transports.Console({
|
new winston.transports.Console({
|
||||||
level: 'debug',
|
level: program['level'] || 'debug',
|
||||||
stderrLevels: [],
|
stderrLevels: [],
|
||||||
format: winston.format.combine(
|
format: winston.format.combine(
|
||||||
winston.format.splat(),
|
winston.format.splat(),
|
||||||
|
|
Loading…
Reference in New Issue