Updating log level when invalid route (#2616)

At the moment we are logging as DEBUG the fact that we are ignoring a new route and that the gateway will not have the expected status.

Even if the client will get the BAD_REQUEST, we should log the fact that we are ignoring this new route.
This commit is contained in:
Alberto C. Ríos
2022-06-28 23:40:49 +02:00
committed by spencergibb
parent 6b0bafdd42
commit 7476673326

View File

@@ -160,7 +160,7 @@ public class AbstractGatewayControllerEndpoint implements ApplicationEventPublis
private void handleUnavailableDefinition(String simpleName, Set<String> unavailableDefinitions) {
final String errorMessage = String.format("Invalid %s: %s", simpleName, unavailableDefinitions);
log.debug(errorMessage);
log.warn(errorMessage);
throw new ResponseStatusException(HttpStatus.BAD_REQUEST, errorMessage);
}