!541 api记录日志耗时单位修改为毫秒
parent
bd7fee0a88
commit
52fc41cfa5
|
@ -105,7 +105,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));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue