diff --git a/src/details/registry.cpp b/src/details/registry.cpp index 99a46114..0ba2f890 100644 --- a/src/details/registry.cpp +++ b/src/details/registry.cpp @@ -12,13 +12,10 @@ #ifdef _WIN32 #include "spdlog/sinks/wincolor_sink.h" #else - #include "spdlog/sinks/ansicolor_sink.h" - #endif #endif // SPDLOG_DISABLE_DEFAULT_LOGGER -#include #include #include #include @@ -79,7 +76,7 @@ namespace spdlog { std::shared_ptr registry::get(std::string_view logger_name) { std::lock_guard lock(logger_map_mutex_); for (const auto &[key, val]: loggers_) { - if (key == logger_name) { + if (logger_name == key) { return val; } }