接口日志持续时间修改为毫秒单位
This commit is contained in:
parent
08e9772f66
commit
9d10c85be8
|
@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue