mirror of https://github.com/Chocobozzz/PeerTube
Relax log level
401 is expected when the token has expired federation issues are not very importantpull/5138/head
parent
dea0df90d5
commit
b0f4204266
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue