log für fehlerhafte API Keys hinzugefügt

This commit is contained in:
2026-04-27 16:52:19 +02:00
parent 485211b169
commit f40a40e622

View File

@@ -42,7 +42,7 @@ public class FileProcessingResource {
//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");
Log.warnf("Trigger abgelehnt — ungültiger oder fehlender API-Key. Key: %s", apiKey);
return Response.status(Response.Status.UNAUTHORIZED).build();
}