aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohan Fleury <jfleury@arcaik.net>2021-07-05 11:47:21 -0400
committerChocobozzz <chocobozzz@cpy.re>2021-07-12 15:40:27 +0200
commit943dc18254bf7d20415ace9103a290fe565d963a (patch)
tree473946220c8de6a5b791853c6071261f0cb552b3
parent2a408c40a99115a33f1712189c724e9bcb3ac519 (diff)
downloadPeerTube-943dc18254bf7d20415ace9103a290fe565d963a.tar.gz
PeerTube-943dc18254bf7d20415ace9103a290fe565d963a.tar.zst
PeerTube-943dc18254bf7d20415ace9103a290fe565d963a.zip
Trim access log messages to prevent double line break
-rw-r--r--server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index 5e1f79064..e46300dce 100644
--- a/server.ts
+++ b/server.ts
@@ -164,7 +164,7 @@ morgan.token('user-agent', (req: express.Request) => {
164}) 164})
165app.use(morgan('combined', { 165app.use(morgan('combined', {
166 stream: { 166 stream: {
167 write: (str: string) => logger.info(str, { tags: [ 'http' ] }) 167 write: (str: string) => logger.info(str.trim(), { tags: [ 'http' ] })
168 }, 168 },
169 skip: req => CONFIG.LOG.LOG_PING_REQUESTS === false && req.originalUrl === '/api/v1/ping' 169 skip: req => CONFIG.LOG.LOG_PING_REQUESTS === false && req.originalUrl === '/api/v1/ping'
170})) 170}))