diff --git a/include/spdlog/logger-inl.h b/include/spdlog/logger-inl.h index 95a485f1..c1e01657 100644 --- a/include/spdlog/logger-inl.h +++ b/include/spdlog/logger-inl.h @@ -89,6 +89,8 @@ SPDLOG_INLINE void logger::set_formatter(std::unique_ptr f) { // last element - we can be move it. (*it)->set_formatter(std::move(f)); + + break; } else {