diff --git a/config/src/main/java/com/alibaba/nacos/config/server/exception/GlobalExceptionHandler.java b/config/src/main/java/com/alibaba/nacos/config/server/exception/GlobalExceptionHandler.java index 6497b5bb0..f3d4b59ef 100644 --- a/config/src/main/java/com/alibaba/nacos/config/server/exception/GlobalExceptionHandler.java +++ b/config/src/main/java/com/alibaba/nacos/config/server/exception/GlobalExceptionHandler.java @@ -19,7 +19,6 @@ package com.alibaba.nacos.config.server.exception; import com.alibaba.nacos.api.exception.NacosException; import com.alibaba.nacos.common.utils.ExceptionUtil; import com.alibaba.nacos.config.server.monitor.MetricsMonitor; -import org.springframework.core.annotation.Order; import org.springframework.dao.DataAccessException; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.ControllerAdvice; @@ -32,7 +31,6 @@ import java.io.IOException; * * @author Nacos */ -@Order(0) @ControllerAdvice public class GlobalExceptionHandler { diff --git a/console/src/main/java/com/alibaba/nacos/console/exception/ConsoleExceptionHandler.java b/console/src/main/java/com/alibaba/nacos/console/exception/ConsoleExceptionHandler.java index c9e34d035..b7c7fcdb5 100644 --- a/console/src/main/java/com/alibaba/nacos/console/exception/ConsoleExceptionHandler.java +++ b/console/src/main/java/com/alibaba/nacos/console/exception/ConsoleExceptionHandler.java @@ -42,6 +42,7 @@ public class ConsoleExceptionHandler { @ExceptionHandler(AccessException.class) private ResponseEntity handleAccessException(AccessException e) { + LOGGER.error("got exception. {}", e.getErrMsg()); return ResponseEntity.status(HttpStatus.FORBIDDEN).body(e.getErrMsg()); }