From 3ee4f2810d23f0b0fa4f85a607c6f41186ef07f7 Mon Sep 17 00:00:00 2001 From: gabime Date: Sun, 3 Nov 2019 17:01:58 +0200 Subject: [PATCH] Micro-optimze log_it_ --- include/spdlog/logger-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/logger-inl.h b/include/spdlog/logger-inl.h index 84cbefbf..021aae9d 100644 --- a/include/spdlog/logger-inl.h +++ b/include/spdlog/logger-inl.h @@ -172,7 +172,7 @@ SPDLOG_INLINE std::shared_ptr logger::clone(std::string logger_name) } // protected methods -SPDLOG_INLINE void logger::log_it_(const spdlog::details::log_msg &log_msg, bool log_enabled, bool traceback_enabled) {}(const details::log_msg &log_msg, bool log_enabled, bool traceback_enabled) +SPDLOG_INLINE void logger::log_it_(const spdlog::details::log_msg &log_msg, bool log_enabled, bool traceback_enabled) { if (log_enabled) {