Browse Source

。。。

wangwei 5 năm trước cách đây
mục cha
commit
715560df86

+ 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());