diff --git a/src/utils/exception.ts b/src/utils/exception.ts index eea3750..5cf0aa6 100644 --- a/src/utils/exception.ts +++ b/src/utils/exception.ts @@ -6,11 +6,11 @@ import { internalLog } from '../communication/internal' */ export function setup (): void { process.setUncaughtExceptionCaptureCallback(err => { + logger.error(err) internalLog.error({ type: 'text', content: `Encountered uncaught exception: ${err.message} \n ${err.stack}`, ctx: undefined }) - logger.error(err) }) }