Skip to content

Commit

Permalink
fix: 当业务下有大量的执行作业,加载 web 页面首页的时候会触发DB慢查询 TencentBlueKing#2228
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyu096 committed Jul 14, 2023
1 parent 6cbbec3 commit fb1df52
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public boolean preHandle(HttpServletRequest request, HttpServletResponse respons
} catch (Throwable e) {
return true;
} finally {
log.info("request-id: {}|lang:{}|API:{}|uri:{}|appCode:{}|username:{}|body:{}|queryParams:{}", requestId,
log.info("request-id: {}|lang: {}|API: {}|uri: {}|appCode: {}|username: {}|body: {}|queryParams: {}", requestId,
lang, apiName,
request.getRequestURI(), appCode, username, desensitizedBody, desensitizedQueryParams);
}
Expand Down Expand Up @@ -142,7 +142,7 @@ public void afterCompletion(HttpServletRequest request, HttpServletResponse resp
String requestId = request.getHeader(JobCommonHeaders.BK_GATEWAY_REQUEST_ID);
int respStatus = response.getStatus();
long cost = System.currentTimeMillis() - startTimeInMills;
log.info("request-id:{}|API:{}|uri:{}|appCode:{}|username:{}|status:{}|resp:{}|cost:{}",
log.info("request-id: {}|API: {}|uri: {}|appCode: {}|username: {}|status: {}|resp: {}|cost: {}",
requestId,
apiName,
request.getRequestURI(),
Expand Down

0 comments on commit fb1df52

Please sign in to comment.