mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-20 13:37:28 +02:00
Replace OpenDebugLog() with StartLogging()
StartLogging() is used to mark the start of logging generically, whether using -printtoconsole or -debuglogfile.
This commit is contained in:
parent
8ab4f282c0
commit
412987430c
3 changed files with 5 additions and 4 deletions
|
|
@ -39,9 +39,10 @@ static int FileWriteStr(const std::string &str, FILE *fp)
|
|||
return fwrite(str.data(), 1, str.size(), fp);
|
||||
}
|
||||
|
||||
bool BCLog::Logger::OpenDebugLog()
|
||||
bool BCLog::Logger::StartLogging()
|
||||
{
|
||||
std::lock_guard<std::mutex> scoped_lock(m_file_mutex);
|
||||
if (!m_print_to_file) return true;
|
||||
|
||||
assert(m_fileout == nullptr);
|
||||
assert(!m_file_path.empty());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue