Browse Source

guards log.trace statement.

pull/275/head
Spencer Gibb 7 years ago
parent
commit
0687b18f7b
No known key found for this signature in database
GPG Key ID: 7788A47380690861
  1. 4
      spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/WebsocketRoutingFilter.java

4
spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/WebsocketRoutingFilter.java

@ -111,7 +111,9 @@ public class WebsocketRoutingFilter implements GlobalFilter, Ordered { @@ -111,7 +111,9 @@ public class WebsocketRoutingFilter implements GlobalFilter, Ordered {
String wsScheme = convertHttpToWs(scheme);
URI wsRequestUrl = UriComponentsBuilder.fromUri(requestUrl).scheme(wsScheme).build().toUri();
exchange.getAttributes().put(GATEWAY_REQUEST_URL_ATTR, wsRequestUrl);
log.trace("changeSchemeTo:[" + wsRequestUrl+"]");
if (log.isTraceEnabled()) {
log.trace("changeSchemeTo:[" + wsRequestUrl + "]");
}
}
}

Loading…
Cancel
Save