log für fehlerhafte API Keys hinzugefügt
This commit is contained in:
@@ -42,7 +42,7 @@ public class FileProcessingResource {
|
|||||||
//Log.infof("API-key received: %s", apiKey);
|
//Log.infof("API-key received: %s", apiKey);
|
||||||
|
|
||||||
if (apiKey == null || !config.api().key().equals(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();
|
return Response.status(Response.Status.UNAUTHORIZED).build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user