diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -159,9 +159,7 @@ morgan.token('user-agent', (req: express.Request) => { | |||
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) { | 162 | skip: req => CONFIG.LOG.LOG_PING_REQUESTS === false && req.originalUrl === '/api/v1/ping' |
163 | return (req.path === '/api/v1/ping' && CONFIG.LOG.LOG_PING_REQUESTS === false) | ||
164 | }, | ||
165 | })) | 163 | })) |
166 | 164 | ||
167 | // For body requests | 165 | // For body requests |