Update log_msg_buffer-inl.h

This commit is contained in:
Gabi Melman 2019-09-20 16:17:48 +03:00 committed by GitHub
parent cff9db5044
commit 277ccc5e18
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ namespace details {
SPDLOG_INLINE void log_msg_buffer::update_string_views()
{
logger_name = string_view_t{buffer.data(), logger_name.size()};
payload = string_view_t{logger_name.end(), payload.size()};
payload = string_view_t{buffer.data()+logger_name.size(), payload.size()};
}
} // namespace details