aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index 00cd87e20..1cc29209e 100644
--- a/server.ts
+++ b/server.ts
@@ -160,7 +160,9 @@ morgan.token('user-agent', (req: express.Request) => {
160 return req.get('user-agent') 160 return req.get('user-agent')
161}) 161})
162app.use(morgan('combined', { 162app.use(morgan('combined', {
163 stream: { write: logger.info.bind(logger) }, 163 stream: {
164 write: (str: string) => logger.info(str, { tags: [ 'http' ] })
165 },
164 skip: req => CONFIG.LOG.LOG_PING_REQUESTS === false && req.originalUrl === '/api/v1/ping' 166 skip: req => CONFIG.LOG.LOG_PING_REQUESTS === false && req.originalUrl === '/api/v1/ping'
165})) 167}))
166 168