Relax log level
401 is expected when the token has expired federation issues are not very important
This commit is contained in:
parent
dea0df90d5
commit
b0f4204266
|
@ -48,7 +48,7 @@ async function doRefresh <T extends MActorFull | MActorAccountChannelId> (option
|
||||||
const { actorObject } = await fetchRemoteActor(actorUrl)
|
const { actorObject } = await fetchRemoteActor(actorUrl)
|
||||||
|
|
||||||
if (actorObject === undefined) {
|
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 }
|
return { actor, refreshed: false }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ async function doRefresh <T extends MActorFull | MActorAccountChannelId> (option
|
||||||
return { actor: undefined, refreshed: false }
|
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 }
|
return { actor, refreshed: false }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,7 @@ async function fetchActorTotalItems (url: string) {
|
||||||
|
|
||||||
return body.totalItems || 0
|
return body.totalItems || 0
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.warn('Cannot fetch remote actor count %s.', url, { err })
|
logger.info('Cannot fetch remote actor count %s.', url, { err })
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ function authenticate (req: express.Request, res: express.Response, next: expres
|
||||||
return next()
|
return next()
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
logger.warn('Cannot authenticate.', { err })
|
logger.info('Cannot authenticate.', { err })
|
||||||
|
|
||||||
return res.fail({
|
return res.fail({
|
||||||
status: err.status,
|
status: err.status,
|
||||||
|
|
Loading…
Reference in New Issue