aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-19 10:45:33 +0200
committerChocobozzz <me@florianbigard.com>2018-06-19 10:45:33 +0200
commit3aa5cea8fec998805e32c0480884906d8e4fd490 (patch)
tree9f0e67cd549417da4395687825184a4bfe4ab809 /scripts
parentc305467cd784345b87703a98c2cc7f0f7d8ba196 (diff)
downloadPeerTube-3aa5cea8fec998805e32c0480884906d8e4fd490.tar.gz
PeerTube-3aa5cea8fec998805e32c0480884906d8e4fd490.tar.zst
PeerTube-3aa5cea8fec998805e32c0480884906d8e4fd490.zip
Upgrade dependencies
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/create-transcoding-job.ts3
-rwxr-xr-xscripts/parse-log.ts7
2 files changed, 6 insertions, 4 deletions
diff --git a/scripts/create-transcoding-job.ts b/scripts/create-transcoding-job.ts
index 179fb4fa6..3ea30f98e 100755
--- a/scripts/create-transcoding-job.ts
+++ b/scripts/create-transcoding-job.ts
@@ -1,7 +1,4 @@
1import * as program from 'commander' 1import * as program from 'commander'
2import { createReadStream } from 'fs'
3import { join } from 'path'
4import { createInterface } from 'readline'
5import { VideoModel } from '../server/models/video/video' 2import { VideoModel } from '../server/models/video/video'
6import { initDatabaseModels } from '../server/initializers' 3import { initDatabaseModels } from '../server/initializers'
7import { JobQueue } from '../server/lib/job-queue' 4import { JobQueue } from '../server/lib/job-queue'
diff --git a/scripts/parse-log.ts b/scripts/parse-log.ts
index 2c5ef696d..9f67c0d53 100755
--- a/scripts/parse-log.ts
+++ b/scripts/parse-log.ts
@@ -1,3 +1,4 @@
1import * as program from 'commander'
1import { createReadStream } from 'fs' 2import { createReadStream } from 'fs'
2import { join } from 'path' 3import { join } from 'path'
3import { createInterface } from 'readline' 4import { createInterface } from 'readline'
@@ -5,6 +6,10 @@ import * as winston from 'winston'
5import { labelFormatter } from '../server/helpers/logger' 6import { labelFormatter } from '../server/helpers/logger'
6import { CONFIG } from '../server/initializers/constants' 7import { CONFIG } from '../server/initializers/constants'
7 8
9program
10 .option('-l, --level [level]', 'Level log (debug/info/warn/error)')
11 .parse(process.argv)
12
8const excludedKeys = { 13const excludedKeys = {
9 level: true, 14 level: true,
10 message: true, 15 message: true,
@@ -27,7 +32,7 @@ const loggerFormat = winston.format.printf((info) => {
27const logger = new winston.createLogger({ 32const logger = new winston.createLogger({
28 transports: [ 33 transports: [
29 new winston.transports.Console({ 34 new winston.transports.Console({
30 level: 'debug', 35 level: program['level'] || 'debug',
31 stderrLevels: [], 36 stderrLevels: [],
32 format: winston.format.combine( 37 format: winston.format.combine(
33 winston.format.splat(), 38 winston.format.splat(),