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

@@ -34,7 +34,7 @@ oauth.use((req, res) => res.sendStatus(404))
oauth.use((err, req, res, next) => {
const error_msg = err.toString()
log.error(error_msg)
log.error('[OAUTH USE]', error_msg)
res.status(500).send(error_msg)
})