net: extend log message to include attempted connection type
This commit is contained in:
1 file changed
+2
-1
+2
-1
@@ -390,8 +390,9 @@ CNode* CConnman::ConnectNode(CAddress addrConnect,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LogDebug(BCLog::NET, "trying %s connection %s lastseen=%.1fhrs\n",
|
LogDebug(BCLog::NET, "trying %s connection (%s) to %s, lastseen=%.1fhrs\n",
|
||||||
use_v2transport ? "v2" : "v1",
|
use_v2transport ? "v2" : "v1",
|
||||||
|
ConnectionTypeAsString(conn_type),
|
||||||
pszDest ? pszDest : addrConnect.ToStringAddrPort(),
|
pszDest ? pszDest : addrConnect.ToStringAddrPort(),
|
||||||
Ticks<HoursDouble>(pszDest ? 0h : Now<NodeSeconds>() - addrConnect.nTime));
|
Ticks<HoursDouble>(pszDest ? 0h : Now<NodeSeconds>() - addrConnect.nTime));
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user