From 0f42744f5c34402541d47c2dfaa125155d33c8e3 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Wed, 12 Feb 2020 12:11:03 +0200 Subject: [PATCH] Update rotating_file_sink-inl.h --- include/spdlog/sinks/rotating_file_sink-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/sinks/rotating_file_sink-inl.h b/include/spdlog/sinks/rotating_file_sink-inl.h index f6b970ce..c30450ee 100644 --- a/include/spdlog/sinks/rotating_file_sink-inl.h +++ b/include/spdlog/sinks/rotating_file_sink-inl.h @@ -106,7 +106,7 @@ SPDLOG_INLINE void rotating_file_sink::rotate_() // this is a workaround to a windows issue, where very high rotation // rates can cause the rename to fail with permission denied (because of antivirus?). details::os::sleep_for_millis(100); - if (!rename_file(src, target)) + if (!rename_file_(src, target)) { file_helper_.reopen(true); // truncate the log file anyway to prevent it to grow beyond its limit! current_size_ = 0;