Skip to content

Commit 9695415

Browse files
authored
fix: log to logger before Discord (#141)
1 parent 97d7daf commit 9695415

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/exception.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import { internalLog } from '../communication/internal'
66
*/
77
export function setup (): void {
88
process.setUncaughtExceptionCaptureCallback(err => {
9+
logger.error(err)
910
internalLog.error({
1011
type: 'text',
1112
content: `Encountered uncaught exception: ${err.message} \n ${err.stack}`,
1213
ctx: undefined
1314
})
14-
logger.error(err)
1515
})
1616
}

0 commit comments

Comments
 (0)