오류 수정, 통계 보강

This commit is contained in:
2025-06-08 20:21:37 +09:00
parent 1a3706d7a5
commit 141a0de6d0
42 changed files with 2645 additions and 799 deletions
+8
View File
@@ -49,6 +49,14 @@ io.on('connection', (socket) => {
// 전역 Socket.IO 인스턴스 설정
app.set('io', io);
// 치명적 예외/비동기 에러 글로벌 로그
process.on('uncaughtException', (err) => {
console.error('[FATAL] Uncaught Exception:', err);
});
process.on('unhandledRejection', (reason, promise) => {
console.error('[FATAL] Unhandled Rejection:', reason);
});
// app.js 또는 서버 초기화 파일
const session = require('express-session');
const MySQLStore = require('express-mysql-session')(session);