diff --git a/server.ts b/server.ts index edfbab3d7f34..bc8d93cc582c 100644 --- a/server.ts +++ b/server.ts @@ -158,7 +158,10 @@ morgan.token('user-agent', (req: express.Request) => { return req.get('user-agent') }) app.use(morgan('combined', { - stream: { write: logger.info.bind(logger) } + stream: { write: logger.info.bind(logger) }, + skip: function (req, res) { + return (req.path === '/api/v1/ping' && req.query.silent === 'true') + }, })) // For body requests