Update pattern_formatter.cpp

This commit is contained in:
Gabi Melman 2023-09-26 01:46:17 +03:00 committed by GitHub
parent 7ac740a029
commit 6eef69e4ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,7 @@ public:
: flag_formatter(padinfo) {} : flag_formatter(padinfo) {}
void format(const details::log_msg &msg, const std::tm &, memory_buf_t &dest) override { void format(const details::log_msg &msg, const std::tm &, memory_buf_t &dest) override {
string_view_t level_name{to_short_c_str(msg.log_level)}; auto level_name = to_short_string_view(msg.log_level)};
ScopedPadder p(level_name.size(), padinfo_, dest); ScopedPadder p(level_name.size(), padinfo_, dest);
fmt_helper::append_string_view(level_name, dest); fmt_helper::append_string_view(level_name, dest);
} }