Skip to content

Commit

Permalink
fix: log error trace (#697)
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 authored Dec 8, 2023
1 parent fc1e90d commit f42009f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/bin/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ if (process.env.NODE_ENV == 'production') {
process.on('uncaughtException', (error) => {
console.error(message);
console.error(`Uncaught exception: ${error.name}: ${error.message}`);
console.error(`stack trace: ${error.stack}`);
process.exit(1);
});
}
Expand Down

0 comments on commit f42009f

Please sign in to comment.