加日志

This commit is contained in:
tanghc
2019-08-30 18:32:43 +08:00
parent ef08956df6
commit aa1a537f22

View File

@@ -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);
}