removed fatal level
This commit is contained in:
parent
9bd67779ec
commit
abab09546c
4 changed files with 6 additions and 7 deletions
|
@ -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)
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue