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. 2
      libi2pd/LeaseSet.cpp
  3. 6
      libi2pd/SSUData.cpp
  4. 13
      libi2pd/Transports.cpp

2
libi2pd/Garlic.cpp

@ -890,7 +890,7 @@ namespace garlic @@ -890,7 +890,7 @@ namespace garlic
m_Tags.insert (std::make_pair (SessionTag (tag, ts), decryption));
}
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);

2
libi2pd/LeaseSet.cpp

@ -159,7 +159,7 @@ namespace data @@ -159,7 +159,7 @@ namespace data
}
}
else
LogPrint (eLogWarning, "LeaseSet: Lease is expired already ");
LogPrint (eLogWarning, "LeaseSet: Lease is expired already");
}
uint64_t LeaseSet::ExtractTimestamp (const uint8_t * buf, size_t len) const

6
libi2pd/SSUData.cpp

@ -442,7 +442,7 @@ namespace transport @@ -442,7 +442,7 @@ namespace transport
}
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 @@ -452,7 +452,7 @@ namespace transport
}
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);
}
}
@ -488,7 +488,7 @@ namespace transport @@ -488,7 +488,7 @@ namespace transport
{
if (ts > it->second->lastFragmentInsertTime + INCOMPLETE_MESSAGES_CLEANUP_TIMEOUT)
{
LogPrint (eLogWarning, "SSU: message ", it->first, " was not completed in ", INCOMPLETE_MESSAGES_CLEANUP_TIMEOUT, " seconds, deleted");
LogPrint (eLogWarning, "SSU: message ", it->first, " was not completed in ", INCOMPLETE_MESSAGES_CLEANUP_TIMEOUT, " seconds, deleted");
it = m_IncompleteMessages.erase (it);
}
else

13
libi2pd/Transports.cpp

@ -271,11 +271,11 @@ namespace transport @@ -271,11 +271,11 @@ namespace transport
m_PeerCleanupTimer->expires_from_now (boost::posix_time::seconds(5*SESSION_CREATION_TIMEOUT));
m_PeerCleanupTimer->async_wait (std::bind (&Transports::HandlePeerCleanupTimer, this, std::placeholders::_1));
if (m_IsNAT)
{
m_PeerTestTimer->expires_from_now (boost::posix_time::minutes(PEER_TEST_INTERVAL));
m_PeerTestTimer->async_wait (std::bind (&Transports::HandlePeerTestTimer, this, std::placeholders::_1));
}
if (m_IsNAT)
{
m_PeerTestTimer->expires_from_now (boost::posix_time::minutes(PEER_TEST_INTERVAL));
m_PeerTestTimer->async_wait (std::bind (&Transports::HandlePeerTestTimer, this, std::placeholders::_1));
}
}
void Transports::Stop ()
@ -589,6 +589,7 @@ namespace transport @@ -589,6 +589,7 @@ namespace transport
if (RoutesRestricted() || !i2p::context.SupportsV4 ()) return;
if (m_SSUServer)
{
LogPrint (eLogInfo, "Transports: Started peer test");
bool statusChanged = false;
for (int i = 0; i < 5; i++)
{
@ -604,7 +605,7 @@ namespace transport @@ -604,7 +605,7 @@ namespace transport
}
}
if (!statusChanged)
LogPrint (eLogWarning, "Can't find routers for peer test");
LogPrint (eLogWarning, "Transports: Can't find routers for peer test");
}
}

Loading…
Cancel
Save