mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-09 07:25:19 +02:00
Merge pull request #46 from parth0105pluang/main
fix: made uncaughtException arrow function like others
This commit is contained in:
commit
33994be7e8
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ import app from './app/app'
|
||||||
import logger from './app/lib/logger'
|
import logger from './app/lib/logger'
|
||||||
import * as Sentry from '@sentry/node'
|
import * as Sentry from '@sentry/node'
|
||||||
|
|
||||||
process.on('uncaughtException', function (error) {
|
process.on('uncaughtException', (error) => {
|
||||||
Sentry.captureException(error)
|
Sentry.captureException(error)
|
||||||
logger.error('server: uncaught exception', error)
|
logger.error('server: uncaught exception', error)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue