diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/helpers/logger.ts | 3 | ||||
-rw-r--r-- | server/middlewares/oauth.ts | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/server/helpers/logger.ts b/server/helpers/logger.ts index 6a02f680a..10e8cabc8 100644 --- a/server/helpers/logger.ts +++ b/server/helpers/logger.ts | |||
@@ -24,8 +24,9 @@ function keysExcluder (key, value) { | |||
24 | const loggerFormat = winston.format.printf((info) => { | 24 | const loggerFormat = winston.format.printf((info) => { |
25 | let additionalInfos = JSON.stringify(info, keysExcluder, 2) | 25 | let additionalInfos = JSON.stringify(info, keysExcluder, 2) |
26 | if (additionalInfos === '{}') additionalInfos = '' | 26 | if (additionalInfos === '{}') additionalInfos = '' |
27 | else additionalInfos = ' ' + additionalInfos | ||
27 | 28 | ||
28 | return `[${info.label}] ${info.timestamp} ${info.level}: ${info.message} ${additionalInfos}` | 29 | return `[${info.label}] ${info.timestamp} ${info.level}: ${info.message}${additionalInfos}` |
29 | }) | 30 | }) |
30 | 31 | ||
31 | const timestampFormatter = winston.format.timestamp({ | 32 | const timestampFormatter = winston.format.timestamp({ |
diff --git a/server/middlewares/oauth.ts b/server/middlewares/oauth.ts index 41a3fb718..3cda41e5c 100644 --- a/server/middlewares/oauth.ts +++ b/server/middlewares/oauth.ts | |||
@@ -1,6 +1,7 @@ | |||
1 | import * as express from 'express' | 1 | import * as express from 'express' |
2 | import * as OAuthServer from 'express-oauth-server' | 2 | import * as OAuthServer from 'express-oauth-server' |
3 | import 'express-validator' | 3 | import 'express-validator' |
4 | import { logger } from '../helpers/logger' | ||
4 | import { OAUTH_LIFETIME } from '../initializers' | 5 | import { OAUTH_LIFETIME } from '../initializers' |
5 | 6 | ||
6 | const oAuthServer = new OAuthServer({ | 7 | const oAuthServer = new OAuthServer({ |