File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -1361,7 +1361,7 @@ void CConnman::SocketHandler()
1361
1361
{
1362
1362
// socket closed gracefully
1363
1363
if (!pnode->fDisconnect ) {
1364
- LogPrint (BCLog::NET, " socket closed\n " );
1364
+ LogPrint (BCLog::NET, " socket closed for peer=%d \n " , pnode-> GetId () );
1365
1365
}
1366
1366
pnode->CloseSocketDisconnect ();
1367
1367
}
@@ -1371,8 +1371,9 @@ void CConnman::SocketHandler()
1371
1371
int nErr = WSAGetLastError ();
1372
1372
if (nErr != WSAEWOULDBLOCK && nErr != WSAEMSGSIZE && nErr != WSAEINTR && nErr != WSAEINPROGRESS)
1373
1373
{
1374
- if (!pnode->fDisconnect )
1375
- LogPrintf (" socket recv error %s\n " , NetworkErrorString (nErr));
1374
+ if (!pnode->fDisconnect ) {
1375
+ LogPrint (BCLog::NET, " socket recv error for peer=%d: %s\n " , pnode->GetId (), NetworkErrorString (nErr));
1376
+ }
1376
1377
pnode->CloseSocketDisconnect ();
1377
1378
}
1378
1379
}
You can’t perform that action at this time.
0 commit comments