diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -164,7 +164,7 @@ morgan.token('user-agent', (req: express.Request) => { | |||
164 | }) | 164 | }) |
165 | app.use(morgan('combined', { | 165 | app.use(morgan('combined', { |
166 | stream: { | 166 | stream: { |
167 | write: (str: string) => logger.info(str, { tags: [ 'http' ] }) | 167 | write: (str: string) => logger.info(str.trim(), { tags: [ 'http' ] }) |
168 | }, | 168 | }, |
169 | skip: req => CONFIG.LOG.LOG_PING_REQUESTS === false && req.originalUrl === '/api/v1/ping' | 169 | skip: req => CONFIG.LOG.LOG_PING_REQUESTS === false && req.originalUrl === '/api/v1/ping' |
170 | })) | 170 | })) |