From 7b8899abec88f20c17014152f2f1b532926e4641 Mon Sep 17 00:00:00 2001 From: tanghc Date: Tue, 7 Apr 2020 10:32:12 +0800 Subject: [PATCH] 3.1.1 --- .../gitee/sop/gatewaycommon/gateway/filter/IndexFilter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/filter/IndexFilter.java b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/filter/IndexFilter.java index eff18885..2e275d93 100644 --- a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/filter/IndexFilter.java +++ b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/filter/IndexFilter.java @@ -130,7 +130,9 @@ public class IndexFilter implements WebFilter { validator.validate(apiParam); this.afterValidate(exchange, apiParam); } catch (ApiException e) { - log.error("验证失败,ip:{}, params:{}, errorMsg:{}", apiParam.fetchIp(), apiParam.toJSONString(), e.getMessage()); + log.error("验证失败,url:{}, ip:{}, params:{}, errorMsg:{}", + exchange.getRequest().getURI().toString(), + apiParam.fetchIp(), apiParam.toJSONString(), e.getMessage()); ServerWebExchangeUtil.setThrowable(exchange, e); } }