Relax log level

401 is expected when the token has expired
federation issues are not very important
This commit is contained in:
Chocobozzz
2022-07-13 10:04:22 +02:00
parent dea0df90d5
commit b0f4204266
3 changed files with 4 additions and 4 deletions

View File

@@ -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 }
}
}

View File

@@ -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
}
}

View File

@@ -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,