diff --git a/include/spdlog/details/pattern_formatter.h b/include/spdlog/details/pattern_formatter.h index 73e16084..4d355bc5 100644 --- a/include/spdlog/details/pattern_formatter.h +++ b/include/spdlog/details/pattern_formatter.h @@ -948,7 +948,7 @@ public: auto millis = fmt_helper::time_fraction(msg.time); fmt_helper::pad3(static_cast(millis.count()), dest); - SPDLOG_CONSTEXPR string_view_t closing_bracket{"] "}; + string_view_t closing_bracket{"] ", 2}; fmt_helper::append_string_view(closing_bracket, dest); #else // no datetime needed