【代码优化】框架:简化 api 访问日志、错误日志的记录逻辑

pull/140/head
YunaiV 2024-09-06 22:36:22 +08:00
parent 1a5755b03a
commit 561edb80ac
1 changed files with 1 additions and 1 deletions

View File

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