Merge pull request #2234 from SpriteOvO/v1.x

Reset current size if rotated files on open
pull/2245/head
Gabi Melman 4 years ago committed by GitHub
commit 729d7f6d88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -36,6 +36,7 @@ SPDLOG_INLINE rotating_file_sink<Mutex>::rotating_file_sink(
if (rotate_on_open && current_size_ > 0) if (rotate_on_open && current_size_ > 0)
{ {
rotate_(); rotate_();
current_size_ = 0;
} }
} }

Loading…
Cancel
Save