diff options
author | Johan Fleury <jfleury@arcaik.net> | 2021-07-05 11:47:21 -0400 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-07-12 15:40:27 +0200 |
commit | 943dc18254bf7d20415ace9103a290fe565d963a (patch) | |
tree | 473946220c8de6a5b791853c6071261f0cb552b3 /server.ts | |
parent | 2a408c40a99115a33f1712189c724e9bcb3ac519 (diff) | |
download | PeerTube-943dc18254bf7d20415ace9103a290fe565d963a.tar.gz PeerTube-943dc18254bf7d20415ace9103a290fe565d963a.tar.zst PeerTube-943dc18254bf7d20415ace9103a290fe565d963a.zip |
Trim access log messages to prevent double line break
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -164,7 +164,7 @@ morgan.token('user-agent', (req: express.Request) => { | |||
164 | }) | 164 | }) |
165 | app.use(morgan('combined', { | 165 | app.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 | })) |