mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
加日志
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user