Resetting the needs time flag when setting a pattern.

This commit is contained in:
doug1234 2022-01-13 21:35:02 -05:00
parent eab522e743
commit 5568b16ed5

View File

@ -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) SPDLOG_INLINE void pattern_formatter::set_pattern(std::string pattern)
{ {
pattern_ = std::move(pattern); pattern_ = std::move(pattern);
needs_time_ = false;
compile_pattern_(pattern_); compile_pattern_(pattern_);
} }