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

@@ -145,7 +145,7 @@ api.use((req, res) => res.sendStatus(404))
// Handle 500
api.use((error, req, res, next) => {
log.error(error)
log.error('[API ERROR]', error)
res.status(500).send('500: Internal Server Error')
})