You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe, this is caused by a Boost.Filesystem limitation. The last write timestamps of a file provided by Boost.Filesystem only have granularity of one second, so often all rotated files have the same timestamp. In this situation, as no file is older than the other, Boost.Log removes files in the order they are returned by the filesystem, which is basically undefined.
Adding support for more fine grained timestamps in Boost.Filesystem has been in my TODO list for a while, but it won't be easy and it will be an API change. After this is done, the issue should resolve in Boost.Log.
When I run the following code https://paste.debian.net/1190133/ the second time, the wrong 00008.log file is deleted.
After run 1: (I copied the folder ...)
After run 2:
I am using Boost 1.74.0 from Debian bullseye.
The text was updated successfully, but these errors were encountered: