fixed tests and renamed to_short_str

This commit is contained in:
gabime
2018-07-04 09:59:26 +03:00
parent 1d9e2304be
commit 95de24e4f6
3 changed files with 18 additions and 18 deletions

View File

@@ -99,7 +99,7 @@ inline const char *to_c_str(spdlog::level::level_enum l)
return level_names[l];
}
inline const char *to_short_str(spdlog::level::level_enum l)
inline const char *to_short_c_str(spdlog::level::level_enum l)
{
return short_level_names[l];
}

View File

@@ -56,7 +56,7 @@ class short_level_formatter : public flag_formatter
{
void format(const details::log_msg &msg, const std::tm &, fmt::memory_buffer &dest) override
{
fmt_helper::append_c_str(level::to_short_str(msg.level), dest);
fmt_helper::append_c_str(level::to_short_c_str(msg.level), dest);
}
};