mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-14 01:32:07 +08:00
Update file_sinks.h
Removed possible throw of an exception from the destructor
This commit is contained in:
parent
06580c8333
commit
be685337b1
@ -289,7 +289,12 @@ public:
|
|||||||
|
|
||||||
~step_file_sink()
|
~step_file_sink()
|
||||||
{
|
{
|
||||||
close_current_file();
|
using details::os::filename_to_str;
|
||||||
|
|
||||||
|
filename_t src =_current_filename;
|
||||||
|
filename_t target = _current_filename + _ext;
|
||||||
|
|
||||||
|
details::os::rename(src, target);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Loading…
Reference in New Issue
Block a user