snowdusk opened a new issue #6517:
URL: https://github.com/apache/apisix/issues/6517
### Issue description
当前的实现第一次切割时间为
```
if not rotate_time then
-- first init rotate time
rotate_time = now_time + interval
core.log.info("first init rotate time is: ", rotate_time)
return
end
```
会造成日志不是按照整点或者整分钟切割
可以改为
```
if not rotate_time then
-- first init rotate time
rotate_time = now_time + interval - (now_time % interval)
core.log.info("first init rotate time is: ", rotate_time)
return
end
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]