Fixed clang-tidy warning about implicit conversion to string_view

This commit is contained in:
gabime
2018-10-19 17:12:02 +03:00
parent c2a9bf9974
commit 70bef682b0
5 changed files with 5 additions and 10 deletions

View File

@@ -47,7 +47,7 @@ protected:
fmt::memory_buffer formatted;
if (use_raw_msg_)
{
details::fmt_helper::append_string_view(msg, formatted);
details::fmt_helper::append_string_view(msg.payload, formatted);
}
else
{

View File

@@ -53,7 +53,7 @@ public:
protected:
void sink_it_(const details::log_msg &msg) override
{
::syslog(syslog_prio_from_level(msg), "%s", fmt::to_string(msg).c_str());
::syslog(syslog_prio_from_level(msg), "%s", fmt::to_string(msg.payload).c_str());
}
void flush_() override {}