!541 api记录日志耗时单位修改为毫秒

Merge pull request !541 from kinlon92/master
This commit is contained in:
芋道源码 2023-07-25 11:56:11 +00:00 committed by Gitee
commit bd1153fbe2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

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