Zusätzliche logs eingefügt
This commit is contained in:
@@ -33,6 +33,7 @@ public class OciUploadService {
|
||||
|
||||
@PostConstruct
|
||||
void init() {
|
||||
Log.info("Initialisiere OCI ObjectStorage-Client...");
|
||||
SimpleAuthenticationDetailsProvider auth = SimpleAuthenticationDetailsProvider.builder()
|
||||
.tenantId(config.tenancyId())
|
||||
.userId(config.userId())
|
||||
@@ -47,7 +48,8 @@ public class OciUploadService {
|
||||
}
|
||||
})
|
||||
.build();
|
||||
|
||||
|
||||
Log.info("Authentifizierung...");
|
||||
this.client = ObjectStorageClient.builder().build(auth);
|
||||
Log.infof("OCI ObjectStorage-Client initialisiert (Region: %s, Bucket: %s)", config.region(), config.bucket());
|
||||
}
|
||||
@@ -61,11 +63,12 @@ public class OciUploadService {
|
||||
* @throws OciException bei Verbindungs- oder Upload-Fehlern
|
||||
*/
|
||||
public void upload(ProcessingContext context) throws OciException {
|
||||
Log.info("OCI Upload gestartet.");
|
||||
List<FileEntry> files = context.extractedFiles.stream()
|
||||
.filter(e -> !e.isMarker)
|
||||
.toList();
|
||||
|
||||
Log.infof("OCI-Upload gestartet: %d Datei(en) für '%s'", files.size(), context.zipNameWithoutExt);
|
||||
Log.infof("OCI-Upload: %d Datei(en) für '%s'", files.size(), context.zipNameWithoutExt);
|
||||
|
||||
for (FileEntry entry : files) {
|
||||
String key = buildKey(context.zipNameWithoutExt, entry.relativePath);
|
||||
|
||||
Reference in New Issue
Block a user