Browse Source

[SSU2] add log messages about peertest

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/1794/head
R4SAS 2 years ago
parent
commit
650b7abef6
Signed by: r4sas
GPG Key ID: 66F6C87B98EBCFE2
  1. 10
      libi2pd/SSU2Session.cpp

10
libi2pd/SSU2Session.cpp

@ -184,7 +184,7 @@ namespace transport
{ {
payloadSize += CreatePaddingBlock (payload + payloadSize, m_MaxPayloadSize - payloadSize); payloadSize += CreatePaddingBlock (payload + payloadSize, m_MaxPayloadSize - payloadSize);
SendData (payload, payloadSize); SendData (payload, payloadSize);
LogPrint (eLogInfo, "SSU2: Peer test sent to ", i2p::data::GetIdentHashAbbreviation (GetRemoteIdentity ()->GetIdentHash ())); LogPrint (eLogDebug, "SSU2: PeerTest sent to ", i2p::data::GetIdentHashAbbreviation (GetRemoteIdentity ()->GetIdentHash ()));
} }
} }
@ -2100,7 +2100,9 @@ namespace transport
else else
m_Server.RescheduleIntroducersUpdateTimerV6 (); m_Server.RescheduleIntroducersUpdateTimerV6 ();
} }
} }
LogPrint (eLogDebug, "SSU2: Peer test 4 received from ", i2p::data::GetIdentHashAbbreviation (GetRemoteIdentity ()->GetIdentHash ()),
" with information about ", i2p::data::GetIdentHashAbbreviation (i2p::data::IdentHash (buf + 3)));
} }
else else
{ {
@ -2114,6 +2116,10 @@ namespace transport
it->second.first->Done (); it->second.first->Done ();
} }
} }
else
{
LogPrint (eLogWarning, "SSU2: Peer test 4 Charlie's Router Info is not found");
}
} }
else else
{ {

Loading…
Cancel
Save