【代码优化】框架:简化 api 访问日志、错误日志的记录逻辑
parent
1a5755b03a
commit
561edb80ac
|
@ -91,7 +91,7 @@ public class ApiAccessLogFilter extends ApiRequestFilter {
|
||||||
if (!enable) {
|
if (!enable) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
apiAccessLogApi.createApiAccessLog(accessLog);
|
apiAccessLogApi.createApiAccessLogAsync(accessLog);
|
||||||
} catch (Throwable th) {
|
} catch (Throwable th) {
|
||||||
log.error("[createApiAccessLog][url({}) log({}) 发生异常]", request.getRequestURI(), toJsonString(accessLog), th);
|
log.error("[createApiAccessLog][url({}) log({}) 发生异常]", request.getRequestURI(), toJsonString(accessLog), th);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue