Unverified Commit 06580c83 authored by Erik's avatar Erik Committed by GitHub

Update file_sinks.h

parent 6f12242a
...@@ -287,6 +287,11 @@ public: ...@@ -287,6 +287,11 @@ public:
_current_size = _file_helper.size(); // expensive. called only once _current_size = _file_helper.size(); // expensive. called only once
} }
~step_file_sink()
{
close_current_file();
}
protected: protected:
void _sink_it(const details::log_msg &msg) override void _sink_it(const details::log_msg &msg) override
{ {
...@@ -306,7 +311,6 @@ protected: ...@@ -306,7 +311,6 @@ protected:
void _flush() override void _flush() override
{ {
_file_helper.flush(); _file_helper.flush();
close_current_file();
} }
private: private:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment