openvidu-server: filter rewrite path warnings updated

pull/550/head
pabloFuente 2020-10-02 18:48:55 +02:00
parent 287fe79deb
commit 47e6e58ba2
1 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,8 @@ public class ApiRestPathRewriteFilter implements Filter {
@Override
public void init(FilterConfig filterConfig) throws ServletException {
log.warn("Support for deprecated REST API paths enabled. Update your REST API clients to use the new paths");
log.warn("Deprecated path support will be removed in a future version. You can disable old path support to test compatibility with property SUPPORT_DEPRECATED_API=false");
log.warn(
"Deprecated path support will be removed in a future release. You can disable old path support to test compatibility with property SUPPORT_DEPRECATED_API=false");
}
@Override
@ -76,8 +77,7 @@ public class ApiRestPathRewriteFilter implements Filter {
((HttpServletRequest) request).getRequestURL().toString().replaceFirst(oldBasePath, newBasePath));
String logPathEnding = oldBasePath.endsWith("/") ? "**" : "/**";
log.warn(
"Path {} is deprecated. Use path {} instead. Deprecated path will be removed in a major release in the future",
log.warn("Path {} is deprecated. Use path {} instead. Deprecated path will be removed in a future release",
oldBasePath + logPathEnding, newBasePath + logPathEnding);
chain.doFilter(new HttpServletRequestWrapper((HttpServletRequest) request) {