Authored by unknown

fix 日志

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