1
0
Fork 0
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:
Josh Pigford 2024-01-14 11:56:18 -06:00 committed by GitHub
commit 33994be7e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)
}) })