test: Log to debug.log in all tests

This commit is contained in:
MarcoFalke
2019-06-20 09:34:45 -04:00
parent fa4a04a5a9
commit fabc57e07d
5 changed files with 19 additions and 1 deletions

View File

@@ -75,6 +75,14 @@ bool BCLog::Logger::StartLogging()
return true;
}
void BCLog::Logger::DisconnectTestLogger()
{
std::lock_guard<std::mutex> scoped_lock(m_cs);
m_buffering = true;
if (m_fileout != nullptr) fclose(m_fileout);
m_fileout = nullptr;
}
void BCLog::Logger::EnableCategory(BCLog::LogFlags flag)
{
m_categories |= flag;