mirror of
https://github.com/gabime/spdlog.git
synced 2025-10-02 11:29:01 +08:00
Use fmt::string_view when logging a C string to avoid unnecessary copy
This commit is contained in:
@@ -47,7 +47,7 @@ protected:
|
||||
fmt::memory_buffer formatted;
|
||||
if (use_raw_msg_)
|
||||
{
|
||||
details::fmt_helper::append_buf(msg.raw, formatted);
|
||||
details::fmt_helper::append_msg(msg, formatted);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user