Fixed issue #527

This commit is contained in:
gabime
2017-10-12 19:48:04 +03:00
parent 9688689938
commit 709948ff4a
5 changed files with 21 additions and 6 deletions

View File

@@ -88,7 +88,7 @@ inline void spdlog::async_logger::_sink_it(details::log_msg& msg)
try
{
#if defined(SPDLOG_ENABLE_MESSAGE_COUNTER)
msg.msg_id = _msg_counter.fetch_add(1, std::memory_order_relaxed);
_incr_msg_counter(msg);
#endif
_async_log_helper->log(msg);
if (_should_flush_on(msg))