diff --git a/include/spdlog/sinks/rotating_file_sink-inl.h b/include/spdlog/sinks/rotating_file_sink-inl.h index 2c003959..7401e4f2 100644 --- a/include/spdlog/sinks/rotating_file_sink-inl.h +++ b/include/spdlog/sinks/rotating_file_sink-inl.h @@ -36,6 +36,7 @@ SPDLOG_INLINE rotating_file_sink::rotating_file_sink( if (rotate_on_open && current_size_ > 0) { rotate_(); + current_size_ = 0; } }