mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Fix issue #1223
This commit is contained in:
parent
45a18a61c6
commit
b6388a15ff
@ -47,10 +47,9 @@ protected:
|
||||
void sink_it_(const details::log_msg &msg) override
|
||||
{
|
||||
string_view_t payload;
|
||||
|
||||
memory_buf_t formatted;
|
||||
if (enable_formatting_)
|
||||
{
|
||||
memory_buf_t formatted;
|
||||
base_sink<Mutex>::formatter_->format(msg, formatted);
|
||||
payload = string_view_t(formatted.data(), formatted.size());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user