From 6eef69e4acff57fc1bbd3147bd96ca20bdf773f1 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 26 Sep 2023 01:46:17 +0300 Subject: [PATCH] Update pattern_formatter.cpp --- src/pattern_formatter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pattern_formatter.cpp b/src/pattern_formatter.cpp index 56f82166..5bce82d7 100644 --- a/src/pattern_formatter.cpp +++ b/src/pattern_formatter.cpp @@ -116,7 +116,7 @@ public: : flag_formatter(padinfo) {} 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); fmt_helper::append_string_view(level_name, dest); }