aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index 5e1f79064..e46300dce 100644
--- a/server.ts
+++ b/server.ts
@@ -164,7 +164,7 @@ morgan.token('user-agent', (req: express.Request) => {
164}) 164})
165app.use(morgan('combined', { 165app.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}))