mirror of https://github.com/Chocobozzz/PeerTube
Fix tests
parent
23e27dd535
commit
2af4fa4d8b
|
@ -24,8 +24,9 @@ function keysExcluder (key, value) {
|
|||
const loggerFormat = winston.format.printf((info) => {
|
||||
let additionalInfos = JSON.stringify(info, keysExcluder, 2)
|
||||
if (additionalInfos === '{}') additionalInfos = ''
|
||||
else additionalInfos = ' ' + additionalInfos
|
||||
|
||||
return `[${info.label}] ${info.timestamp} ${info.level}: ${info.message} ${additionalInfos}`
|
||||
return `[${info.label}] ${info.timestamp} ${info.level}: ${info.message}${additionalInfos}`
|
||||
})
|
||||
|
||||
const timestampFormatter = winston.format.timestamp({
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import * as express from 'express'
|
||||
import * as OAuthServer from 'express-oauth-server'
|
||||
import 'express-validator'
|
||||
import { logger } from '../helpers/logger'
|
||||
import { OAUTH_LIFETIME } from '../initializers'
|
||||
|
||||
const oAuthServer = new OAuthServer({
|
||||
|
|
Loading…
Reference in New Issue