pull/836/merge
Rafi Wiener 7 years ago committed by GitHub
commit b26f86643b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -101,7 +101,10 @@ private:
// this is a workaround to a windows issue, where very high rotation
// rates sometimes fail (because of antivirus?).
details::os::sleep_for_millis(20);
details::os::remove(target);
if (details::os::remove(target) != 0)
{
throw spdlog_ex("rotating_file_sink: failed removing " + filename_to_str(target), errno);
}
if (details::os::rename(src, target) != 0)
{
throw spdlog_ex(

Loading…
Cancel
Save