Skip to content

Commit a64c185

Browse files
committed
More temp logging that is way too verbose
1 parent 609ad7b commit a64c185

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

src/steamnetworkingsockets/clientlib/steamnetworkingsockets_p2p.cpp

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ void CSteamNetworkConnectionP2P::FreeResources()
632632

633633
// Release signaling
634634
if ( m_pSignaling )
635-
{
635+
{
636636
m_pSignaling->Release();
637637
m_pSignaling = nullptr;
638638
}
@@ -1921,11 +1921,11 @@ bool CSteamNetworkConnectionP2P::ProcessSignal( const CMsgSteamNetworkingP2PRend
19211921
// If we were already closed, this won't actually be "unexpected". The
19221922
// error message and code we pass here are only used if we are not already
19231923
// closed.
1924-
ConnectionState_ClosedByPeer( k_ESteamNetConnectionEnd_Misc_PeerSentNoConnection, "Received unexpected P2P 'no connection' signal" );
1924+
ConnectionState_ClosedByPeer( k_ESteamNetConnectionEnd_Misc_PeerSentNoConnection, "Received unexpected P2P 'no connection' signal" );
19251925
}
19261926
else
19271927
{
1928-
ConnectionState_ClosedByPeer( connection_closed.reason_code(), connection_closed.debug().c_str() );
1928+
ConnectionState_ClosedByPeer( connection_closed.reason_code(), connection_closed.debug().c_str() );
19291929
}
19301930
return true;
19311931
}
@@ -2282,14 +2282,14 @@ void CConnectionTransportP2PBase::P2PTransportThink( SteamNetworkingMicroseconds
22822282
{
22832283
m_pSelfAsConnectionTransport->SendEndToEndStatsMsg( k_EStatsReplyRequest_Immediate, usecNow, "End-to-end ping sample" );
22842284
}
2285-
else if (
2285+
else if (
22862286
pCurrentP2PTransport == this // they have selected us
22872287
|| pCurrentP2PTransport == nullptr // They haven't selected anybody
22882288
|| pCurrentP2PTransport->m_bNeedToConfirmEndToEndConnectivity // current transport is not in good shape
22892289
) {
22902290

22912291
// We're a viable option right now, not just a backup
2292-
if (
2292+
if (
22932293
// Some reason to establish connectivity or collect more data?
22942294
m_bNeedToConfirmEndToEndConnectivity
22952295
|| m_nReplyTimeoutsSinceLastRecv > 0
@@ -2900,6 +2900,10 @@ bool CSteamNetworkingSockets::InternalReceivedP2PSignal( const CMsgSteamNetworki
29002900

29012901
int nLogLevel = m_connectionConfig.LogLevel_P2PRendezvous.Get();
29022902

2903+
SpewVerboseGroup( nLogLevel, ">>> Recv P2PRendezvous from %s connection %u\n", msg.from_identity().c_str(), msg.from_connection_id() );
2904+
SpewDebugGroup( nLogLevel, "%s\n\n", Indent( msg.DebugString() ).c_str() );
2905+
RunCodeAtScopeExit( SpewVerboseGroup( nLogLevel, "<<< Done processing P2PRendezvous\n" ); );
2906+
29032907
SteamNetworkingMicroseconds usecNow = SteamNetworkingSockets_GetLocalTimestamp();
29042908

29052909
// Locate the connection, if we already have one
@@ -3299,7 +3303,7 @@ bool CSteamNetworkingSockets::InternalReceivedP2PSignal( const CMsgSteamNetworki
32993303
}
33003304

33013305
// OK, start setting up the connection
3302-
if ( !pConn->BBeginAcceptFromSignal(
3306+
if ( !pConn->BBeginAcceptFromSignal(
33033307
msgConnectRequest,
33043308
errMsg,
33053309
usecNow

0 commit comments

Comments
 (0)