Upgrade dependencies

pull/691/head
Chocobozzz 2018-06-19 10:45:33 +02:00
parent c305467cd7
commit 3aa5cea8fe
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
3 changed files with 464 additions and 370 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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'

View File

@ -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(),