diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 | }) |
160 | app.use(morgan('combined', { | 160 | app.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 |