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:
committed by
spencergibb
parent
6b0bafdd42
commit
7476673326
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user