improve error logging

This commit is contained in:
les
2021-07-08 20:41:56 +02:00
parent 1cd43f8992
commit 9cf2b41f7c
14 changed files with 35 additions and 37 deletions

View File

@@ -126,7 +126,7 @@ const Helpers = {
return res.data
})
.catch(e => {
log.error(`${URL}: ${e}`)
log.error(`get Actor ${URL}`, e)
return false
})

View File

@@ -140,7 +140,7 @@ router.use((req, res) => {
// Handle 500
router.use((error, req, res, next) => {
log.error(error)
log.error('[WEBFINGER]', error)
res.status(500).send('500: Internal Server Error')
})