net: extend log message to include attempted connection type

This commit is contained in:
Vasil Dimov 2026-01-30 13:56:51 +01:00
parent 0871e104a2
commit 67696b207f
No known key found for this signature in database
GPG Key ID: 54DF06F64B55CBBF

View File

@ -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",
ConnectionTypeAsString(conn_type),
pszDest ? pszDest : addrConnect.ToStringAddrPort(),
Ticks<HoursDouble>(pszDest ? 0h : Now<NodeSeconds>() - addrConnect.nTime));