From 5067d1c12c7f488134d20575244a9696037b3d6d Mon Sep 17 00:00:00 2001 From: gabime Date: Tue, 7 Apr 2015 21:10:43 +0300 Subject: [PATCH] fixed thread_id bug in async_msg struct --- include/spdlog/details/async_log_helper.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/spdlog/details/async_log_helper.h b/include/spdlog/details/async_log_helper.h index 26dcac4b..9988ff39 100644 --- a/include/spdlog/details/async_log_helper.h +++ b/include/spdlog/details/async_log_helper.h @@ -59,8 +59,8 @@ class async_log_helper std::string logger_name; level::level_enum level; log_clock::time_point time; - std::string txt; uint64_t thread_id; + std::string txt; async_msg() = default; ~async_msg() = default; @@ -77,6 +77,7 @@ async_msg(async_msg&& other) SPDLOG_NOEXCEPT: logger_name = std::move(other.logger_name); level = other.level; time = std::move(other.time); + thread_id = other.thread_id; txt = std::move(other.txt); return *this; } @@ -89,6 +90,7 @@ async_msg(async_msg&& other) SPDLOG_NOEXCEPT: logger_name(m.logger_name), level(m.level), time(m.time), + thread_id(m.thread_id), txt(m.raw.data(), m.raw.size()) {}