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