mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Update step logger
This commit is contained in:
parent
877a618400
commit
98b9cd38ec
@ -128,11 +128,15 @@ protected:
|
||||
std::tie(new_filename, std::ignore) = FileNameCalc::calc_filename(_base_filename, _tmp_ext);
|
||||
|
||||
bool change_occured = !details::file_helper::file_exists(new_filename);
|
||||
if (change_occured) close_current_file();
|
||||
if (change_occured)
|
||||
{
|
||||
close_current_file();
|
||||
|
||||
_current_filename = std::move(new_filename);
|
||||
_current_filename = std::move(new_filename);
|
||||
|
||||
_file_helper.open(_current_filename);
|
||||
}
|
||||
|
||||
_file_helper.open(_current_filename);
|
||||
_tp = _next_tp();
|
||||
|
||||
if (change_occured)
|
||||
|
Loading…
Reference in New Issue
Block a user