From 5568b16ed5e3a7dffe3e67d30e0ca721da0a489f Mon Sep 17 00:00:00 2001 From: doug1234 Date: Thu, 13 Jan 2022 21:35:02 -0500 Subject: [PATCH] Resetting the needs time flag when setting a pattern. --- include/spdlog/pattern_formatter-inl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/spdlog/pattern_formatter-inl.h b/include/spdlog/pattern_formatter-inl.h index caf7c62c..4342685d 100644 --- a/include/spdlog/pattern_formatter-inl.h +++ b/include/spdlog/pattern_formatter-inl.h @@ -1071,6 +1071,7 @@ SPDLOG_INLINE void pattern_formatter::format(const details::log_msg &msg, memory SPDLOG_INLINE void pattern_formatter::set_pattern(std::string pattern) { pattern_ = std::move(pattern); + needs_time_ = false; compile_pattern_(pattern_); }