Replace string pointer with string_view in log_msg

This commit is contained in:
gabime
2019-06-04 16:10:49 +03:00
parent efc358da9f
commit 33a42202c7
8 changed files with 31 additions and 32 deletions

View File

@@ -102,7 +102,7 @@ struct async_msg
// copy into log_msg
log_msg to_log_msg()
{
log_msg msg(&worker_ptr->name(), level, string_view_t(raw.data(), raw.size()));
log_msg msg(string_view_t(worker_ptr->name()), level, string_view_t(raw.data(), raw.size()));
msg.time = time;
msg.thread_id = thread_id;
msg.source = source;