From 98fab37ca0517bfe58296e47266cd5bd112e90bf Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Fri, 18 Dec 2020 07:41:34 +1000 Subject: net: use peer=N instead of from=N in debug log --- src/net.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net.cpp') diff --git a/src/net.cpp b/src/net.cpp index 6f4ab2ee06..76bf7effa4 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1231,7 +1231,7 @@ bool CConnman::InactivityCheck(const CNode& node) const } if (node.nLastRecv == 0 || node.nLastSend == 0) { - LogPrint(BCLog::NET, "socket no message in first %i seconds, %d %d from %d\n", m_peer_connect_timeout, node.nLastRecv != 0, node.nLastSend != 0, node.GetId()); + LogPrint(BCLog::NET, "socket no message in first %i seconds, %d %d peer=%d\n", m_peer_connect_timeout, node.nLastRecv != 0, node.nLastSend != 0, node.GetId()); return true; } @@ -1254,7 +1254,7 @@ bool CConnman::InactivityCheck(const CNode& node) const } if (!node.fSuccessfullyConnected) { - LogPrint(BCLog::NET, "version handshake timeout from %d\n", node.GetId()); + LogPrint(BCLog::NET, "version handshake timeout peer=%d\n", node.GetId()); return true; } -- cgit v1.2.3