mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 18:11:33 +08:00
Update rotating_file_sink-inl.h
This commit is contained in:
parent
e8daf7c73b
commit
0f42744f5c
@ -106,7 +106,7 @@ SPDLOG_INLINE void rotating_file_sink<Mutex>::rotate_()
|
|||||||
// this is a workaround to a windows issue, where very high rotation
|
// this is a workaround to a windows issue, where very high rotation
|
||||||
// rates can cause the rename to fail with permission denied (because of antivirus?).
|
// rates can cause the rename to fail with permission denied (because of antivirus?).
|
||||||
details::os::sleep_for_millis(100);
|
details::os::sleep_for_millis(100);
|
||||||
if (!rename_file(src, target))
|
if (!rename_file_(src, target))
|
||||||
{
|
{
|
||||||
file_helper_.reopen(true); // truncate the log file anyway to prevent it to grow beyond its limit!
|
file_helper_.reopen(true); // truncate the log file anyway to prevent it to grow beyond its limit!
|
||||||
current_size_ = 0;
|
current_size_ = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user