Browse Source

update log messages

Signed-off-by: R4SAS <r4sas@i2pmail.org>
pull/1499/head
R4SAS 5 years ago
parent
commit
b6b25dc9f3
  1. 2
      libi2pd/Garlic.cpp
  2. 4
      libi2pd/SSUData.cpp
  3. 3
      libi2pd/Transports.cpp

2
libi2pd/Garlic.cpp

@ -890,7 +890,7 @@ namespace garlic
m_Tags.insert (std::make_pair (SessionTag (tag, ts), decryption)); m_Tags.insert (std::make_pair (SessionTag (tag, ts), decryption));
} }
if (!m_Tags.empty ()) if (!m_Tags.empty ())
LogPrint (eLogInfo, m_Tags.size (), " loaded for ", ident); LogPrint (eLogInfo, "Garlic: " m_Tags.size (), " tags loaded for ", ident);
} }
} }
i2p::fs::Remove (path); i2p::fs::Remove (path);

4
libi2pd/SSUData.cpp

@ -442,7 +442,7 @@ namespace transport
} }
catch (boost::system::system_error& ec) catch (boost::system::system_error& ec)
{ {
LogPrint (eLogWarning, "SSU: Can't resend data fragment ", ec.what ()); LogPrint (eLogWarning, "SSU: Can't resend message ", it->first, " data fragment: ", ec.what ());
} }
} }
@ -452,7 +452,7 @@ namespace transport
} }
else else
{ {
LogPrint (eLogInfo, "SSU: message has not been ACKed after ", MAX_NUM_RESENDS, " attempts, deleted"); LogPrint (eLogInfo, "SSU: message ", it->first, " has not been ACKed after ", MAX_NUM_RESENDS, " attempts, deleted");
it = m_SentMessages.erase (it); it = m_SentMessages.erase (it);
} }
} }

3
libi2pd/Transports.cpp

@ -589,6 +589,7 @@ namespace transport
if (RoutesRestricted() || !i2p::context.SupportsV4 ()) return; if (RoutesRestricted() || !i2p::context.SupportsV4 ()) return;
if (m_SSUServer) if (m_SSUServer)
{ {
LogPrint (eLogInfo, "Transports: Started peer test");
bool statusChanged = false; bool statusChanged = false;
for (int i = 0; i < 5; i++) for (int i = 0; i < 5; i++)
{ {
@ -604,7 +605,7 @@ namespace transport
} }
} }
if (!statusChanged) if (!statusChanged)
LogPrint (eLogWarning, "Can't find routers for peer test"); LogPrint (eLogWarning, "Transports: Can't find routers for peer test");
} }
} }

Loading…
Cancel
Save