diff --git a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/zuul/configuration/ZuulErrorController.java b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/zuul/configuration/ZuulErrorController.java index 6d50a6e0..e411f6f9 100644 --- a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/zuul/configuration/ZuulErrorController.java +++ b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/zuul/configuration/ZuulErrorController.java @@ -40,7 +40,7 @@ public class ZuulErrorController implements ErrorController { if (throwable == null) { throwable = (Throwable) request.getAttribute("javax.servlet.error.exception"); } - log.error("请求错误,params:{}", ZuulContext.getApiParam(), throwable); + log.error("请求错误,URL:{}, params:{}",request.getRequestURL().toString(), ZuulContext.getApiParam(), throwable); return this.buildResult(throwable); }