Skip to content

Commit 8a88ba3

Browse files
committed
[logger] Fix race condition on log database table
1 parent 32fdc81 commit 8a88ba3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/tools/log/Logger.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,11 @@ Logger::~Logger()
6969
#endif // _MSC_VER
7070
LOG_OUTPUT << m_level_str << " - [" << std::put_time(&now_tm, "%Y-%m-%dT%T") << "] - " << file_line.str() << " - "
7171
<< m_log_output.str() << std::endl;
72-
}
73-
if (m_log_database)
74-
{
75-
m_log_database->log(now, m_level, file_line.str(), m_log_output.str());
72+
73+
if (m_log_database)
74+
{
75+
m_log_database->log(now, m_level, file_line.str(), m_log_output.str());
76+
}
7677
}
7778
}
7879

0 commit comments

Comments
 (0)