MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / DisconnectTestLogger

Method DisconnectTestLogger

src/logging.cpp:103–114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103void BCLog::Logger::DisconnectTestLogger()
104{
105 STDLOCK(m_cs);
106 m_buffering = true;
107 if (m_fileout != nullptr) fclose(m_fileout);
108 m_fileout = nullptr;
109 m_print_callbacks.clear();
110 m_max_buffer_memusage = DEFAULT_MAX_LOG_BUFFER;
111 m_cur_buffer_memusage = 0;
112 m_buffer_lines_discarded = 0;
113 m_msgs_before_open.clear();
114}
115
116void BCLog::Logger::DisableLogging()
117{

Callers 4

BOOST_AUTO_TEST_CASEFunction · 0.80
~BasicTestingSetupMethod · 0.80
appTestsMethod · 0.80
~LoggingConnectionMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.64
~BasicTestingSetupMethod · 0.64
appTestsMethod · 0.64