Update deployment with async fixes - prevents unhandled rejections (232.84 MB)
This commit is contained in:
@@ -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;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user