From 36138617fc369ce3e5c0105d757d6a46fa2d9e42 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 26 Sep 2020 15:36:57 +0300 Subject: [PATCH] small readablilty update in registry --- include/spdlog/details/registry-inl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/spdlog/details/registry-inl.h b/include/spdlog/details/registry-inl.h index 159aad2e..af905708 100644 --- a/include/spdlog/details/registry-inl.h +++ b/include/spdlog/details/registry-inl.h @@ -74,8 +74,9 @@ SPDLOG_INLINE bool registry::set_level_from_cfg_(logger *logger) if (cfg_level_it != cfg_levels_.end()) { logger->set_level(cfg_level_it->second); + return true; } - return cfg_level_it != cfg_levels_.end(); + return false; } SPDLOG_INLINE void registry::initialize_logger(std::shared_ptr new_logger)