mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
test: Log to debug.log in all tests
This commit is contained in:
parent
fa4a04a5a9
commit
fabc57e07d
5 changed files with 19 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue