From 9d3591dcd51179fa4483eaa1906040c03c643ae4 Mon Sep 17 00:00:00 2001 From: gabime Date: Fri, 13 Dec 2019 15:22:21 +0200 Subject: [PATCH] refactor --- include/spdlog/cfg/env-inl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/cfg/env-inl.h b/include/spdlog/cfg/env-inl.h index 21715c98..d4ce0d14 100644 --- a/include/spdlog/cfg/env-inl.h +++ b/include/spdlog/cfg/env-inl.h @@ -79,7 +79,7 @@ SPDLOG_INLINE std::unordered_map extract_key_vals_(con return rv; } -inline details::registry::logger_levels from_string_(const std::string& input) +inline details::registry::logger_levels levels_from_string_(const std::string& input) { auto key_vals = extract_key_vals_(input); details::registry::logger_levels rv; @@ -110,7 +110,7 @@ inline details::registry::logger_levels from_string_(const std::string& input) SPDLOG_INLINE void load_levels() { - auto levels = from_string_(details::os::getenv("SPDLOG_LEVEL")); + auto levels = levels_from_string_(details::os::getenv("SPDLOG_LEVEL")); spdlog::details::registry::instance().set_levels(levels); }