diff --git a/include/spdlog/details/synchronous_factory.h b/include/spdlog/details/synchronous_factory.h index aea19f5e..ccda42da 100644 --- a/include/spdlog/details/synchronous_factory.h +++ b/include/spdlog/details/synchronous_factory.h @@ -27,7 +27,7 @@ struct synchronous_factory try { - auto new_logger = std::make_shared(std::move(logger_name), std::move(sink)); + NewLogger = std::make_shared(std::move(logger_name), std::move(sink)); } catch(std::bad_alloc& exc) {