From 05105155f8839a02879932aebcff2c7a48d9c346 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 25 Oct 2019 16:55:24 +0300 Subject: [PATCH] refactoed file_helper --- include/spdlog/details/file_helper-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/file_helper-inl.h b/include/spdlog/details/file_helper-inl.h index 3c1d8056..669999b4 100644 --- a/include/spdlog/details/file_helper-inl.h +++ b/include/spdlog/details/file_helper-inl.h @@ -30,7 +30,7 @@ SPDLOG_INLINE void file_helper::open(const filename_t &fname, bool truncate) close(); filename_ = fname; auto *mode = truncate ? SPDLOG_FILENAME_T("wb") : SPDLOG_FILENAME_T("ab"); - + for (int tries = 0; tries < open_tries_; ++tries) { // create containing folder if not exists already.