Adjust log level for invalid SockJS or Websocket requests

This commit is contained in:
Sebastien Deleuze
2015-02-19 14:58:21 +01:00
parent 40cbede7f3
commit 90e6304b49
3 changed files with 32 additions and 15 deletions

View File

@@ -796,7 +796,9 @@ public abstract class WebUtils {
originComponents = UriComponentsBuilder.fromHttpUrl(origin).build();
}
catch (IllegalArgumentException ex) {
logger.error("Failed to parse Origin header value [" + origin + "]");
if (logger.isWarnEnabled()) {
logger.warn("Failed to parse Origin header value [" + origin + "]");
}
return false;
}
UriComponents requestComponents = UriComponentsBuilder.fromHttpRequest(request).build();