mirror of https://github.com/Chocobozzz/PeerTube
Trim access log messages to prevent double line break
parent
2a408c40a9
commit
943dc18254
|
@ -164,7 +164,7 @@ morgan.token('user-agent', (req: express.Request) => {
|
|||
})
|
||||
app.use(morgan('combined', {
|
||||
stream: {
|
||||
write: (str: string) => logger.info(str, { tags: [ 'http' ] })
|
||||
write: (str: string) => logger.info(str.trim(), { tags: [ 'http' ] })
|
||||
},
|
||||
skip: req => CONFIG.LOG.LOG_PING_REQUESTS === false && req.originalUrl === '/api/v1/ping'
|
||||
}))
|
||||
|
|
Loading…
Reference in New Issue