Zusätzliche logs eingefügt

This commit is contained in:
2026-04-22 13:07:01 +02:00
parent f7a9113a57
commit e7fb09069c
3 changed files with 9 additions and 2 deletions

View File

@@ -38,6 +38,9 @@ public class FileProcessingResource {
@POST
@Produces(MediaType.APPLICATION_JSON)
public Response triggerProcessing(@HeaderParam("X-Api-Key") String apiKey) {
//Log.infof("API-key correct: %s", config.api().key());
//Log.infof("API-key received: %s", apiKey);
if (apiKey == null || !config.api().key().equals(apiKey)) {
Log.warn("Trigger abgelehnt — ungültiger oder fehlender API-Key");
return Response.status(Response.Status.UNAUTHORIZED).build();