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