aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
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
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')
-rw-r--r--server/lib/activitypub/actors/refresh.ts4
-rw-r--r--server/lib/activitypub/actors/shared/url-to-object.ts2
-rw-r--r--server/middlewares/auth.ts2
3 files changed, 4 insertions, 4 deletions
diff --git a/server/lib/activitypub/actors/refresh.ts b/server/lib/activitypub/actors/refresh.ts
index 0acaa9f62..8ce2cd5d9 100644
--- a/server/lib/activitypub/actors/refresh.ts
+++ b/server/lib/activitypub/actors/refresh.ts
@@ -48,7 +48,7 @@ async function doRefresh <T extends MActorFull | MActorAccountChannelId> (option
48 const { actorObject } = await fetchRemoteActor(actorUrl) 48 const { actorObject } = await fetchRemoteActor(actorUrl)
49 49
50 if (actorObject === undefined) { 50 if (actorObject === undefined) {
51 logger.warn('Cannot fetch remote actor in refresh actor.') 51 logger.info('Cannot fetch remote actor %s in refresh actor.', actorUrl)
52 return { actor, refreshed: false } 52 return { actor, refreshed: false }
53 } 53 }
54 54
@@ -67,7 +67,7 @@ async function doRefresh <T extends MActorFull | MActorAccountChannelId> (option
67 return { actor: undefined, refreshed: false } 67 return { actor: undefined, refreshed: false }
68 } 68 }
69 69
70 logger.warn('Cannot refresh actor %s.', actor.url, { err, ...lTags() }) 70 logger.info('Cannot refresh actor %s.', actor.url, { err, ...lTags() })
71 return { actor, refreshed: false } 71 return { actor, refreshed: false }
72 } 72 }
73} 73}
diff --git a/server/lib/activitypub/actors/shared/url-to-object.ts b/server/lib/activitypub/actors/shared/url-to-object.ts
index 982d52b79..7bc37f1ff 100644
--- a/server/lib/activitypub/actors/shared/url-to-object.ts
+++ b/server/lib/activitypub/actors/shared/url-to-object.ts
@@ -47,7 +47,7 @@ async function fetchActorTotalItems (url: string) {
47 47
48 return body.totalItems || 0 48 return body.totalItems || 0
49 } catch (err) { 49 } catch (err) {
50 logger.warn('Cannot fetch remote actor count %s.', url, { err }) 50 logger.info('Cannot fetch remote actor count %s.', url, { err })
51 return 0 51 return 0
52 } 52 }
53} 53}
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,