aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-07-18 11:55:13 +0200
committerChocobozzz <me@florianbigard.com>2022-07-18 11:55:13 +0200
commit1cc9774668827c1255e4cd0775cb781c7f73051c (patch)
tree6ee5099e069e35ca100e74ac1de54ba94113a9b3 /server/lib
parent42b40636991b97fe818007fab19091764fc5db73 (diff)
downloadPeerTube-1cc9774668827c1255e4cd0775cb781c7f73051c.tar.gz
PeerTube-1cc9774668827c1255e4cd0775cb781c7f73051c.tar.zst
PeerTube-1cc9774668827c1255e4cd0775cb781c7f73051c.zip
Fix incorrect error logs
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/activitypub/actors/refresh.ts2
-rw-r--r--server/lib/client-html.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/activitypub/actors/refresh.ts b/server/lib/activitypub/actors/refresh.ts
index 8ce2cd5d9..6d8428d66 100644
--- a/server/lib/activitypub/actors/refresh.ts
+++ b/server/lib/activitypub/actors/refresh.ts
@@ -75,7 +75,7 @@ async function doRefresh <T extends MActorFull | MActorAccountChannelId> (option
75function getActorUrl (actor: MActorFull) { 75function getActorUrl (actor: MActorFull) {
76 return getUrlFromWebfinger(actor.preferredUsername + '@' + actor.getHost()) 76 return getUrlFromWebfinger(actor.preferredUsername + '@' + actor.getHost())
77 .catch(err => { 77 .catch(err => {
78 logger.warn('Cannot get actor URL from webfinger, keeping the old one.', err) 78 logger.warn('Cannot get actor URL from webfinger, keeping the old one.', { err })
79 return actor.url 79 return actor.url
80 }) 80 })
81} 81}
diff --git a/server/lib/client-html.ts b/server/lib/client-html.ts
index 899d80c15..4fd9a4263 100644
--- a/server/lib/client-html.ts
+++ b/server/lib/client-html.ts
@@ -576,7 +576,7 @@ async function serveIndexHTML (req: express.Request, res: express.Response) {
576 await generateHTMLPage(req, res, req.params.language) 576 await generateHTMLPage(req, res, req.params.language)
577 return 577 return
578 } catch (err) { 578 } catch (err) {
579 logger.error('Cannot generate HTML page.', err) 579 logger.error('Cannot generate HTML page.', { err })
580 return res.status(HttpStatusCode.INTERNAL_SERVER_ERROR_500).end() 580 return res.status(HttpStatusCode.INTERNAL_SERVER_ERROR_500).end()
581 } 581 }
582 } 582 }