From 650b7abef62afdd5397e3c4c6f70f8987c5d0831 Mon Sep 17 00:00:00 2001 From: R4SAS Date: Sun, 9 Oct 2022 19:17:28 +0300 Subject: [PATCH] [SSU2] add log messages about peertest Signed-off-by: R4SAS --- libi2pd/SSU2Session.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libi2pd/SSU2Session.cpp b/libi2pd/SSU2Session.cpp index cddb45d4..8dd4884e 100644 --- a/libi2pd/SSU2Session.cpp +++ b/libi2pd/SSU2Session.cpp @@ -184,7 +184,7 @@ namespace transport { payloadSize += CreatePaddingBlock (payload + payloadSize, m_MaxPayloadSize - 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 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 { @@ -2114,6 +2116,10 @@ namespace transport it->second.first->Done (); } } + else + { + LogPrint (eLogWarning, "SSU2: Peer test 4 Charlie's Router Info is not found"); + } } else {