Fix tests
This commit is contained in:
parent
23e27dd535
commit
2af4fa4d8b
|
@ -24,8 +24,9 @@ function keysExcluder (key, value) {
|
||||||
const loggerFormat = winston.format.printf((info) => {
|
const loggerFormat = winston.format.printf((info) => {
|
||||||
let additionalInfos = JSON.stringify(info, keysExcluder, 2)
|
let additionalInfos = JSON.stringify(info, keysExcluder, 2)
|
||||||
if (additionalInfos === '{}') additionalInfos = ''
|
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({
|
const timestampFormatter = winston.format.timestamp({
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import * as express from 'express'
|
import * as express from 'express'
|
||||||
import * as OAuthServer from 'express-oauth-server'
|
import * as OAuthServer from 'express-oauth-server'
|
||||||
import 'express-validator'
|
import 'express-validator'
|
||||||
|
import { logger } from '../helpers/logger'
|
||||||
import { OAUTH_LIFETIME } from '../initializers'
|
import { OAUTH_LIFETIME } from '../initializers'
|
||||||
|
|
||||||
const oAuthServer = new OAuthServer({
|
const oAuthServer = new OAuthServer({
|
||||||
|
|
Loading…
Reference in New Issue