aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/auth.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-07-13 10:04:22 +0200
committerChocobozzz <me@florianbigard.com>2022-07-13 10:04:22 +0200
commitb0f4204266057316c11fc034da0ce86a212dc0b3 (patch)
tree026f06fbc6f1fc29fababc76880223f70ab4d7b7 /server/middlewares/auth.ts
parentdea0df90d50327588933eeb7de748fb31485ad45 (diff)
downloadPeerTube-b0f4204266057316c11fc034da0ce86a212dc0b3.tar.gz
PeerTube-b0f4204266057316c11fc034da0ce86a212dc0b3.tar.zst
PeerTube-b0f4204266057316c11fc034da0ce86a212dc0b3.zip
Relax log level
401 is expected when the token has expired federation issues are not very important
Diffstat (limited to 'server/middlewares/auth.ts')
-rw-r--r--server/middlewares/auth.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/auth.ts b/server/middlewares/auth.ts
index ad3b24ab2..904d47efd 100644
--- a/server/middlewares/auth.ts
+++ b/server/middlewares/auth.ts
@@ -14,7 +14,7 @@ function authenticate (req: express.Request, res: express.Response, next: expres
14 return next() 14 return next()
15 }) 15 })
16 .catch(err => { 16 .catch(err => {
17 logger.warn('Cannot authenticate.', { err }) 17 logger.info('Cannot authenticate.', { err })
18 18
19 return res.fail({ 19 return res.fail({
20 status: err.status, 20 status: err.status,