improve error logging
This commit is contained in:
@@ -126,7 +126,7 @@ const Helpers = {
|
||||
return res.data
|
||||
})
|
||||
.catch(e => {
|
||||
log.error(`${URL}: ${e}`)
|
||||
log.error(`get Actor ${URL}`, e)
|
||||
return false
|
||||
})
|
||||
|
||||
|
||||
@@ -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')
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user