대시보드 조회시 로그 누적 오류 수정.
parent
16b7570b56
commit
1251c24cdc
|
|
@ -40,14 +40,18 @@ public class FaispInterceptor implements HandlerInterceptor {
|
|||
@Override
|
||||
public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {
|
||||
//페이지 렌더링 후 실행.
|
||||
UserRequestLog log = new UserRequestLog();
|
||||
log.setContactIp(Utils.getClientIP(request));
|
||||
log.setRequestUrl(request.getRequestURI());
|
||||
log.setRequestMethod(request.getMethod());
|
||||
log.setSearchParams(request.getQueryString());
|
||||
log.setHandlerDescription(((HandlerMethod) handler).toString());
|
||||
log.setUserOrgan((String) request.getSession().getAttribute("userOrgan"));
|
||||
log.setUserBelong((String) request.getSession().getAttribute("belongValue"));
|
||||
userLogService.saveRequestLog(log);
|
||||
if(request.getParameter("dashboardFlag").equals("true")){
|
||||
// 대시보드 ajax 조회 로그 저장시 키 중첩으로 오류 발생.
|
||||
// 대시보드 ajax 조회는 로그를 쌓지 않음.
|
||||
UserRequestLog log = new UserRequestLog();
|
||||
log.setContactIp(Utils.getClientIP(request));
|
||||
log.setRequestUrl(request.getRequestURI());
|
||||
log.setRequestMethod(request.getMethod());
|
||||
log.setSearchParams(request.getQueryString());
|
||||
log.setHandlerDescription(((HandlerMethod) handler).toString());
|
||||
log.setUserOrgan((String) request.getSession().getAttribute("userOrgan"));
|
||||
log.setUserBelong((String) request.getSession().getAttribute("belongValue"));
|
||||
userLogService.saveRequestLog(log);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -82,9 +82,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</th:block>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-bell-fill" viewBox="0 0 16 16" th:id="${#lists.isEmpty(alarmList)?'':'bellIcon'}">
|
||||
<path d="M8 16a2 2 0 0 0 2-2H6a2 2 0 0 0 2 2zm.995-14.901a1 1 0 1 0-1.99 0A5.002 5.002 0 0 0 3 6c0 1.098-.5 6-2 7h14c-1.5-1-2-5.902-2-7 0-2.42-1.72-4.44-4.005-4.901z"/>
|
||||
</svg>
|
||||
<i class="bi bi-bell-fill" th:id="${#lists.isEmpty(alarmList)?'':'bellIcon'}"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown">
|
||||
|
|
|
|||
Loading…
Reference in New Issue