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
|
secretKey: process.env.MINIO_SECRET_KEY
|
||||||
});
|
});
|
||||||
|
|
||||||
this.ensureBucketExists();
|
this.ensureBucketExists().catch(error => {
|
||||||
|
console.warn('MinIO bucket initialization failed:', error.message);
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
console.warn('Minio configuration not found. Logs will only be stored locally and in console.');
|
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!'
|
secretKey: process.env.MINIO_SECRET_KEY || 'serpentrace123!'
|
||||||
});
|
});
|
||||||
|
|
||||||
this.ensureBucketExists();
|
this.ensureBucketExists().catch(error => {
|
||||||
|
console.warn('MinIO bucket initialization failed:', error.message);
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
console.log('Development mode: MinIO disabled. Set ENABLE_MINIO=true to enable MinIO logging.');
|
console.log('Development mode: MinIO disabled. Set ENABLE_MINIO=true to enable MinIO logging.');
|
||||||
this.minioClient = null;
|
this.minioClient = null;
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Reference in New Issue
Block a user