add constexpr to SPDLOG_LEVEL_NAMES declaration

for #1791
This commit is contained in:
Gaurav Vaidya
2021-01-11 11:15:29 +01:00
parent aa2053a575
commit 53d223b45f
3 changed files with 4 additions and 4 deletions

View File

@@ -127,7 +127,7 @@ public:
void format(const details::log_msg &msg, const std::tm &, memory_buf_t &dest) override
{
string_view_t &level_name = level::to_string_view(msg.level);
const string_view_t &level_name = level::to_string_view(msg.level);
ScopedPadder p(level_name.size(), padinfo_, dest);
fmt_helper::append_string_view(level_name, dest);
}