接口日志持续时间修改为毫秒单位

This commit is contained in:
zjl 2023-07-24 23:00:24 +08:00
parent 08e9772f66
commit 9d10c85be8
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ public class ApiAccessLogFilter extends ApiRequestFilter {
// 持续时间
accessLog.setBeginTime(beginTime);
accessLog.setEndTime(LocalDateTime.now());
accessLog.setDuration((int) LocalDateTimeUtil.between(accessLog.getBeginTime(), accessLog.getEndTime(), ChronoUnit.SECONDS));
accessLog.setDuration((int) LocalDateTimeUtil.between(accessLog.getBeginTime(), accessLog.getEndTime(), ChronoUnit.MILLIS));
}
}