Commit 628473b3 by 袁伟铭

修改api日志类型

parent 9e436c12
...@@ -87,7 +87,7 @@ public class ApiController { ...@@ -87,7 +87,7 @@ public class ApiController {
// 没有数据输出空 // 没有数据输出空
resp = resp == null ? new ApiResp(form) : resp; resp = resp == null ? new ApiResp(form) : resp;
String logType = resp.isSuccess() ? "INFO" : "ERROR"; String logType = resp.isSuccess() ? "INFO" : "400".equals(resp.getCode()) ? "WARN" : "ERROR";
// 如果是500错误, 服务会返回错误的堆栈信息 // 如果是500错误, 服务会返回错误的堆栈信息
if (resp.getCode().equals(ApiCodeEnum.SERVER_ERROR.code())) { if (resp.getCode().equals(ApiCodeEnum.SERVER_ERROR.code())) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment