MCPcopy Create free account
hub / github.com/ElementsProject/elements / LogFromLocation

Function LogFromLocation

src/test/logging_tests.cpp:190–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190void LogFromLocation(int location, std::string message)
191{
192 switch (location) {
193 case 0:
194 LogPrint(BCLog::UNCONDITIONAL_RATE_LIMITED, "%s\n", message);
195 break;
196 case 1:
197 LogPrint(BCLog::UNCONDITIONAL_RATE_LIMITED, "%s\n", message);
198 break;
199 case 2:
200 LogPrint(BCLog::UNCONDITIONAL_ALWAYS, "%s\n", message);
201 break;
202 case 3:
203 LogPrint(BCLog::ALL, "%s\n", message);
204 break;
205 }
206}
207
208void LogFromLocationAndExpect(int location, std::string message, std::string expect)
209{

Callers 2

LogFromLocationAndExpectFunction · 0.85
BOOST_AUTO_TEST_CASEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected