From 5cd0b6272d8857b2998ddd419d26845a87f4adab Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 1 Oct 2019 01:56:02 +0300 Subject: [PATCH] Update logger-inl.h --- include/spdlog/logger-inl.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/spdlog/logger-inl.h b/include/spdlog/logger-inl.h index c0ace982..05c57e8e 100644 --- a/include/spdlog/logger-inl.h +++ b/include/spdlog/logger-inl.h @@ -205,7 +205,7 @@ SPDLOG_INLINE void logger::dump_backtrace_() if (tracer_) { sink_it_(log_msg{name(), level::info, "****************** Backtrace Start ******************"}); - tracer_.foreach_pop([this](const details::log_msg &msg) { this->sink_it_(msg); }); + tracer_.foreach_pop([this](const log_msg &msg) { this->sink_it_(msg); }); sink_it_(log_msg{name(), level::info, "****************** Backtrace End ********************"}); } } @@ -218,7 +218,6 @@ SPDLOG_INLINE bool logger::should_flush_(const details::log_msg &msg) SPDLOG_INLINE void logger::err_handler_(const std::string &msg) { - if (custom_err_handler_) { custom_err_handler_(msg);