瀏覽代碼

。。。

wangwei 5 年之前
父節點
當前提交
715560df86
共有 1 個文件被更改,包括 6 次插入6 次删除
  1. 6 6
      src/main/java/cn/com/qmth/examcloud/web/interceptor/ApiFlowLimitedInterceptor.java

+ 6 - 6
src/main/java/cn/com/qmth/examcloud/web/interceptor/ApiFlowLimitedInterceptor.java

@@ -189,8 +189,8 @@ public class ApiFlowLimitedInterceptor implements HandlerInterceptor {
 		boolean acquired = rateLimiter.tryAcquire();
 		if (!acquired) {
 
-			if (INTERFACE_LOG.isDebugEnabled()) {
-				INTERFACE_LOG.debug("[Limited]. G.");
+			if (INTERFACE_LOG.isErrorEnabled()) {
+				INTERFACE_LOG.error("[Limited]. G.");
 			}
 
 			response.setStatus(HttpStatus.SERVICE_UNAVAILABLE.value());
@@ -223,8 +223,8 @@ public class ApiFlowLimitedInterceptor implements HandlerInterceptor {
 			acquired = limiter.tryAcquire();
 			if (!acquired) {
 
-				if (INTERFACE_LOG.isDebugEnabled()) {
-					INTERFACE_LOG.debug("[Limited]. S. mapping=" + apiInfo.getMapping());
+				if (INTERFACE_LOG.isErrorEnabled()) {
+					INTERFACE_LOG.error("[Limited]. S. mapping=" + apiInfo.getMapping());
 				}
 
 				response.setStatus(HttpStatus.SERVICE_UNAVAILABLE.value());
@@ -290,8 +290,8 @@ public class ApiFlowLimitedInterceptor implements HandlerInterceptor {
 				}
 			}
 
-			if (INTERFACE_LOG.isDebugEnabled()) {
-				INTERFACE_LOG.debug("[Limited]. ER. mapping=" + apiInfo.getMapping());
+			if (INTERFACE_LOG.isErrorEnabled()) {
+				INTERFACE_LOG.error("[Limited]. ER. mapping=" + apiInfo.getMapping());
 			}
 
 			response.setStatus(HttpStatus.SERVICE_UNAVAILABLE.value());