Commit 70d03fd9 authored by gabime's avatar gabime

Minor optimization

parent 0a8cce69
...@@ -729,8 +729,14 @@ public: ...@@ -729,8 +729,14 @@ public:
void format(const details::log_msg &msg, const std::tm &, fmt::memory_buffer &dest) override void format(const details::log_msg &msg, const std::tm &, fmt::memory_buffer &dest) override
{ {
scoped_pad p(msg.payload, padinfo_, dest); if(padinfo_.width_) {
fmt_helper::append_string_view(msg.payload, dest); scoped_pad p(msg.payload, padinfo_, dest);
fmt_helper::append_string_view(msg.payload, dest);
}
else
{
fmt_helper::append_string_view(msg.payload, dest);
}
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment