From 70b36aa55d519fbf6ef1d51084a16a10bcd36ed5 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 10 Jul 2021 14:07:32 +0300 Subject: [PATCH] Remove fmt::runtime() wrapper in logger.h --- include/spdlog/logger.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/logger.h b/include/spdlog/logger.h index b52eda9e..444d1711 100644 --- a/include/spdlog/logger.h +++ b/include/spdlog/logger.h @@ -341,7 +341,7 @@ protected: SPDLOG_TRY { memory_buf_t buf; - fmt::format_to(std::back_inserter(buf), SPDLOG_FMT_RUNTIME(fmt), std::forward(args)...); + fmt::format_to(std::back_inserter(buf), fmt, std::forward(args)...); details::log_msg log_msg(loc, name_, lvl, string_view_t(buf.data(), buf.size())); log_it_(log_msg, log_enabled, traceback_enabled); }