加日志

This commit is contained in:
tanghc
2019-08-30 18:51:13 +08:00
parent aa1a537f22
commit b73850b293

View File

@@ -40,7 +40,7 @@ public class ZuulErrorController implements ErrorController {
if (throwable == null) {
throwable = (Throwable) request.getAttribute("javax.servlet.error.exception");
}
log.error("请求错误URL:{}, params:{}",request.getRequestURL().toString(), ZuulContext.getApiParam(), throwable);
log.error("请求错误URL:{}, status:{}, params:{}",request.getRequestURL().toString(), response.getStatus(), ZuulContext.getApiParam(), throwable);
return this.buildResult(throwable);
}