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({
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({