mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-12 17:00:25 +08:00
Resetting the needs time flag when setting a pattern.
This commit is contained in:
parent
eab522e743
commit
5568b16ed5
@ -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_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user