mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-16 00:45:48 +08:00
Update dup_filter_sink.h
This commit is contained in:
parent
32f1efdc99
commit
3cd9bcdab9
@ -64,7 +64,7 @@ protected:
|
|||||||
if (skip_counter_ > 0)
|
if (skip_counter_ > 0)
|
||||||
{
|
{
|
||||||
memory_buf_t buf;
|
memory_buf_t buf;
|
||||||
fmt::format_to(std::back_inserter(buf), fmt::runtime("Skipped {} duplicate messages.."), skip_counter_);
|
fmt::format_to(buf, "Skipped {} duplicate messages..", skip_counter_);
|
||||||
details::log_msg skipped_msg{msg.logger_name, level::info, string_view_t{buf.data(), buf.size()}};
|
details::log_msg skipped_msg{msg.logger_name, level::info, string_view_t{buf.data(), buf.size()}};
|
||||||
dist_sink<Mutex>::sink_it_(skipped_msg);
|
dist_sink<Mutex>::sink_it_(skipped_msg);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user