1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

stop-time debug statements

This commit is contained in:
Thomas Winget 2022-10-31 12:46:21 -04:00 committed by Jeff Becker
parent 57b77fecb3
commit 9960aed45c
No known key found for this signature in database
GPG key ID: 025C02EE3A092F2D
2 changed files with 5 additions and 0 deletions

View file

@ -47,7 +47,9 @@ namespace llarp
auto itr = m_Endpoints.begin();
while (itr != m_Endpoints.end())
{
log::debug(logcat, "Stopping endpoint {}.", itr->first);
itr->second->Stop();
log::debug(logcat, "Endpoint {} stopped.", itr->first);
m_Stopped.emplace_back(std::move(itr->second));
itr = m_Endpoints.erase(itr);
}

View file

@ -387,9 +387,12 @@ namespace llarp
Endpoint::Stop()
{
// stop remote sessions
log::debug(logcat, "Endpoint stopping remote sessions.");
EndpointUtil::StopRemoteSessions(m_state->m_RemoteSessions);
// stop snode sessions
log::debug(logcat, "Endpoint stopping snode sessions.");
EndpointUtil::StopSnodeSessions(m_state->m_SNodeSessions);
log::debug(logcat, "Endpoint stopping its path builder.");
return path::Builder::Stop();
}