Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix tests

Chocobozzz2af4fa4d8ba6
diff --git a/server/helpers/logger.ts b/server/helpers/logger.ts
index 6a02f680ab..10e8cabc8a 100644
--- a/server/helpers/logger.ts
+++ b/server/helpers/logger.ts
@@ -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({
diff --git a/server/middlewares/oauth.ts b/server/middlewares/oauth.ts
index 41a3fb7189..3cda41e5c4 100644
--- a/server/middlewares/oauth.ts
+++ b/server/middlewares/oauth.ts
@@ -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({