1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Fix incorrect error logs

This commit is contained in:
Chocobozzz 2022-07-18 11:55:13 +02:00
parent 42b4063699
commit 1cc9774668
No known key found for this signature in database
GPG key ID: 583A612D890159BE
5 changed files with 5 additions and 5 deletions

View file

@ -75,7 +75,7 @@ async function doRefresh <T extends MActorFull | MActorAccountChannelId> (option
function getActorUrl (actor: MActorFull) {
return getUrlFromWebfinger(actor.preferredUsername + '@' + actor.getHost())
.catch(err => {
logger.warn('Cannot get actor URL from webfinger, keeping the old one.', err)
logger.warn('Cannot get actor URL from webfinger, keeping the old one.', { err })
return actor.url
})
}