Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #55 from Hygieia/fix-auditing
Browse files Browse the repository at this point in the history
Fix the health check ping in Logging Filter
  • Loading branch information
rvema authored Sep 17, 2020
2 parents a624938 + 2626091 commit 2ac64b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<artifactId>api-audit</artifactId>
<packaging>jar</packaging>
<name>${project.groupId}:${project.artifactId}</name>
<version>3.4.0-SNAPSHOT</version>
<version>3.4.1-SNAPSHOT</version>
<description>Hygieia Audit Rest API Layer</description>
<url>https://github.com/Hygieia/${repository.name}</url>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,13 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha
HttpServletRequest httpServletRequest = (HttpServletRequest) request;
HttpServletResponse httpServletResponse = (HttpServletResponse) response;

if (settings.checkIgnoreEndPoint(httpServletRequest.getRequestURI())) return;

Map<String, String> requestMap = this.getTypesafeRequestMap(httpServletRequest);
BufferedRequestWrapper bufferedRequest = new BufferedRequestWrapper(httpServletRequest);
BufferedResponseWrapper bufferedResponse = new BufferedResponseWrapper(httpServletResponse);
if (settings.checkIgnoreEndPoint(httpServletRequest.getRequestURI())) {
chain.doFilter(bufferedRequest, bufferedResponse);
return;
}
String apiUser = bufferedRequest.getHeader(API_USER_KEY);
long startTime = System.currentTimeMillis();
AuditRequestLog requestLog = new AuditRequestLog();
Expand Down

0 comments on commit 2ac64b1

Please sign in to comment.