From b0f823078320686972eecc94c151dd88b52b7724 Mon Sep 17 00:00:00 2001 From: gabime Date: Sun, 18 Sep 2016 00:14:56 +0300 Subject: [PATCH] Fixed bug in basic_logger creating (passed truncate to force_flush arg) --- include/spdlog/details/spdlog_impl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/details/spdlog_impl.h b/include/spdlog/details/spdlog_impl.h index bc283c83..95aeeb07 100644 --- a/include/spdlog/details/spdlog_impl.h +++ b/include/spdlog/details/spdlog_impl.h @@ -39,12 +39,12 @@ inline void spdlog::drop(const std::string &name) // Create multi/single threaded simple file logger inline std::shared_ptr spdlog::basic_logger_mt(const std::string& logger_name, const filename_t& filename, bool truncate) { - return create(logger_name, filename, truncate); + return create(logger_name, filename, false, truncate); } inline std::shared_ptr spdlog::basic_logger_st(const std::string& logger_name, const filename_t& filename, bool truncate) { - return create(logger_name, filename, truncate); + return create(logger_name, filename, false, truncate); } // Create multi/single threaded rotating file logger