Commit 79da8f01 by Tuomas Riihimäki

Rest query logging for hostnamefilter

1 parent 57c727a8
...@@ -116,7 +116,6 @@ public class HostnameFilter implements Filter { ...@@ -116,7 +116,6 @@ public class HostnameFilter implements Filter {
chain.doFilter(request, response); chain.doFilter(request, response);
} catch (Throwable t) { } catch (Throwable t) {
if (AuthType.REST == authtype) { if (AuthType.REST == authtype) {
logger.warn("Caught Exception for REST query. url {}, method: {}, content type {}, and length {}", httpRequest.getRequestURL(), httpRequest.getMethod(), httpRequest.getContentType(), httpRequest.getContentLength());
logger.warn("Caught exception at rest:", t); logger.warn("Caught exception at rest:", t);
} }
throw t; throw t;
...@@ -137,6 +136,7 @@ public class HostnameFilter implements Filter { ...@@ -137,6 +136,7 @@ public class HostnameFilter implements Filter {
// } // }
private boolean restAuth(HttpServletRequest httpRequest, ServletResponse response) { private boolean restAuth(HttpServletRequest httpRequest, ServletResponse response) {
logger.info("Trying to authenticate for REST query. url {}, method: {}, content type {}, and length {}", httpRequest.getRequestURL(), httpRequest.getMethod(), httpRequest.getContentType(), httpRequest.getContentLength());
StringBuilder hashBuilder = new StringBuilder(); StringBuilder hashBuilder = new StringBuilder();
hashBuilder.append("rest:"); hashBuilder.append("rest:");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!