removed fatal level

This commit is contained in:
Emily 2020-04-19 00:23:50 +10:00
parent 9bd67779ec
commit abab09546c
4 changed files with 6 additions and 7 deletions

View file

@ -278,7 +278,7 @@ module.exports = client => {
// Both of these functions catch errors and log them (maybe we could use sentry?)
process.on('uncaughtException', (err) => {
const errorMsg = err.stack.replace(new RegExp(`${__dirname}/`, 'g'), './')
client.logger.fatal(`Uncaught Exception: ${errorMsg}`)
client.logger.error(`Uncaught Exception: ${errorMsg}`)
process.exit(1)
})