WANG 5 жил өмнө
parent
commit
3057a4c88c

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

@@ -93,6 +93,11 @@ public class ApiFlowLimitedInterceptor implements HandlerInterceptor {
 
 		boolean acquired = rateLimiter.tryAcquire();
 		if (!acquired) {
+
+			if (INTERFACE_LOG.isDebugEnabled()) {
+				INTERFACE_LOG.debug("[Limited]. ");
+			}
+
 			response.setStatus(HttpStatus.SERVICE_UNAVAILABLE.value());
 			ServletUtil.returnJson(new StatusResponse("503", "limited"), response);
 			return false;