Skip to content

Commit

Permalink
Log Send reponse before removing MDC information
Browse files Browse the repository at this point in the history
link to Landry test on #554
  • Loading branch information
pierrejego committed Nov 19, 2021
1 parent 25be1da commit 744ee50
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ public void postHandle( HttpServletRequest request, HttpServletResponse response
if(logger.isDebugEnabled()){
long executeTime = System.currentTimeMillis() - (Long)request.getAttribute("startTime");
logger.debug("Request handle in " + executeTime + "ms");
}

}

logger.info("Send response");

MDC.remove(CadastrappConstants.HTTP_HEADER_USERNAME);
MDC.remove(CadastrappConstants.HTTP_HEADER_ROLES);
MDC.remove(CadastrappConstants.HTTP_HEADER_ORGANISME);
MDC.remove("uri");

logger.info("Send response");
}

}

0 comments on commit 744ee50

Please sign in to comment.