Update logger.h

This commit is contained in:
Gabi Melman 2019-04-06 02:14:08 +03:00 committed by GitHub
parent fef405ac98
commit 6bec53dcd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -164,10 +164,9 @@ public:
}
try
{
using details::fmt_helper::to_string_view;
fmt::memory_buffer buf;
fmt::format_to(buf, "{}", msg);
details::log_msg log_msg(loc, &name_, lvl, to_string_view(buf));
details::log_msg log_msg(loc, &name_, lvl, lvl, string_view_t(buf.data(), buf.size()));
sink_it_(log_msg);
}
catch (const std::exception &ex)