Authored by unknown

fix 日志

... ... @@ -60,13 +60,14 @@ public class ControllerCostInterceptor implements HandlerInterceptor {
if (cost <= 500) {
return;
}
// 5、耗时超过1000ms,则试图去降级
if (cost >= 500) {
downGradeService.tryDowngrade();
}
// 6、打印响应超过500ms的请求与参数
// 5、打印响应超过500ms的请求与参数
CONTROLLER_COST.info("run more than 500ms ,cost [{}] ms, RequestURL: {}", cost, getRequestUrl(request));
// 6、耗时超过1000ms,则试图去降级
if (cost >= 1000) {
downGradeService.tryDowngrade();
}
} catch (Exception e) {
// TODO: handle exception
} finally {
... ...