mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-24 22:49:05 +08:00
Merge pull request #2234 from SpriteOvO/v1.x
Reset current size if rotated files on open
This commit is contained in:
commit
729d7f6d88
@ -36,6 +36,7 @@ SPDLOG_INLINE rotating_file_sink<Mutex>::rotating_file_sink(
|
||||
if (rotate_on_open && current_size_ > 0)
|
||||
{
|
||||
rotate_();
|
||||
current_size_ = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user