From 47e6e58ba23fb417326d2b1672f4ad8a987d3c0e Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Fri, 2 Oct 2020 18:48:55 +0200 Subject: [PATCH] openvidu-server: filter rewrite path warnings updated --- .../io/openvidu/server/rest/ApiRestPathRewriteFilter.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openvidu-server/src/main/java/io/openvidu/server/rest/ApiRestPathRewriteFilter.java b/openvidu-server/src/main/java/io/openvidu/server/rest/ApiRestPathRewriteFilter.java index 7d33ae9d..8d7a9bcf 100644 --- a/openvidu-server/src/main/java/io/openvidu/server/rest/ApiRestPathRewriteFilter.java +++ b/openvidu-server/src/main/java/io/openvidu/server/rest/ApiRestPathRewriteFilter.java @@ -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) {