Refactoring to better support backtrace

This commit is contained in:
gabime
2019-08-27 00:56:49 +03:00
parent 04a8485b17
commit e1be7f3d6f
4 changed files with 28 additions and 74 deletions

View File

@@ -24,7 +24,7 @@ public:
: messages_{n_message}
{}
void add_msg(const log_msg &msg)
void add(const log_msg &msg)
{
std::lock_guard<std::mutex> lock{mutex_};
messages_.push_back(log_msg_buffer{msg});