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

Function LogConnectFailure

src/netbase.cpp:532–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530
531template<typename... Args>
532static void LogConnectFailure(bool manual_connection, const char* fmt, const Args&... args) {
533 std::string error_message = tfm::format(fmt, args...);
534 if (manual_connection) {
535 LogPrintf("%s\n", error_message);
536 } else {
537 LogPrint(BCLog::NET, "%s\n", error_message);
538 }
539}
540
541bool ConnectSocketDirectly(const CService &addrConnect, const Sock& sock, int nTimeout, bool manual_connection)
542{

Callers 1

ConnectSocketDirectlyFunction · 0.85

Calls 1

formatFunction · 0.70

Tested by

no test coverage detected