aboutsummaryrefslogtreecommitdiffhomepage
path: root/server.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server.ts')
-rw-r--r--server.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index e674a09d4..f844c9564 100644
--- a/server.ts
+++ b/server.ts
@@ -158,7 +158,10 @@ morgan.token('user-agent', (req: express.Request) => {
158 return req.get('user-agent') 158 return req.get('user-agent')
159}) 159})
160app.use(morgan('combined', { 160app.use(morgan('combined', {
161 stream: { write: logger.info.bind(logger) } 161 stream: { write: logger.info.bind(logger) },
162 skip: function (req, res) {
163 return (req.path === '/api/v1/ping' && CONFIG.LOG.LOG_PING_REQUESTS === false)
164 },
162})) 165}))
163 166
164// For body requests 167// For body requests