diff --git a/SerpentRace_Backend/src/Application/Services/LoggingService.ts b/SerpentRace_Backend/src/Application/Services/LoggingService.ts index 16617368..fcafc7ce 100644 --- a/SerpentRace_Backend/src/Application/Services/LoggingService.ts +++ b/SerpentRace_Backend/src/Application/Services/LoggingService.ts @@ -90,7 +90,9 @@ export class LoggingService { secretKey: process.env.MINIO_SECRET_KEY }); - this.ensureBucketExists(); + this.ensureBucketExists().catch(error => { + console.warn('MinIO bucket initialization failed:', error.message); + }); } else { console.warn('Minio configuration not found. Logs will only be stored locally and in console.'); } @@ -105,7 +107,9 @@ export class LoggingService { secretKey: process.env.MINIO_SECRET_KEY || 'serpentrace123!' }); - this.ensureBucketExists(); + this.ensureBucketExists().catch(error => { + console.warn('MinIO bucket initialization failed:', error.message); + }); } else { console.log('Development mode: MinIO disabled. Set ENABLE_MINIO=true to enable MinIO logging.'); this.minioClient = null; diff --git a/SerpentRace_Backend/src/Application/Services/WebSocketService.ts b/SerpentRace_Backend/src/Application/Services/WebSocketService.ts index 5ef871f1..0ef9036e 100644 --- a/SerpentRace_Backend/src/Application/Services/WebSocketService.ts +++ b/SerpentRace_Backend/src/Application/Services/WebSocketService.ts @@ -110,8 +110,10 @@ export class WebSocketService { this.maxMessagesPerUser = parseInt(process.env.CHAT_MAX_MESSAGES_PER_USER || '100'); this.messageCleanupWeeks = parseInt(process.env.CHAT_MESSAGE_CLEANUP_WEEKS || '4'); - // Initialize Redis connection - this.initializeRedis(); + // Initialize Redis connection (handle async without await in constructor) + this.initializeRedis().catch(error => { + logError('Redis initialization failed in WebSocketService constructor', error as Error); + }); this.setupSocketHandlers(); this.setupArchivingScheduler(); diff --git a/serpentRaceDocker.tar b/serpentRaceDocker.tar new file mode 100644 index 00000000..3089737d Binary files /dev/null and b/serpentRaceDocker.tar differ