mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Relax log level
401 is expected when the token has expired federation issues are not very important
This commit is contained in:
@@ -48,7 +48,7 @@ async function doRefresh <T extends MActorFull | MActorAccountChannelId> (option
|
||||
const { actorObject } = await fetchRemoteActor(actorUrl)
|
||||
|
||||
if (actorObject === undefined) {
|
||||
logger.warn('Cannot fetch remote actor in refresh actor.')
|
||||
logger.info('Cannot fetch remote actor %s in refresh actor.', actorUrl)
|
||||
return { actor, refreshed: false }
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ async function doRefresh <T extends MActorFull | MActorAccountChannelId> (option
|
||||
return { actor: undefined, refreshed: false }
|
||||
}
|
||||
|
||||
logger.warn('Cannot refresh actor %s.', actor.url, { err, ...lTags() })
|
||||
logger.info('Cannot refresh actor %s.', actor.url, { err, ...lTags() })
|
||||
return { actor, refreshed: false }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ async function fetchActorTotalItems (url: string) {
|
||||
|
||||
return body.totalItems || 0
|
||||
} catch (err) {
|
||||
logger.warn('Cannot fetch remote actor count %s.', url, { err })
|
||||
logger.info('Cannot fetch remote actor count %s.', url, { err })
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ function authenticate (req: express.Request, res: express.Response, next: expres
|
||||
return next()
|
||||
})
|
||||
.catch(err => {
|
||||
logger.warn('Cannot authenticate.', { err })
|
||||
logger.info('Cannot authenticate.', { err })
|
||||
|
||||
return res.fail({
|
||||
status: err.status,
|
||||
|
||||
Reference in New Issue
Block a user