stop-time debug statements

pull/2045/head
Thomas Winget 2 years ago committed by Jeff Becker
parent 57b77fecb3
commit 9960aed45c
No known key found for this signature in database
GPG Key ID: 025C02EE3A092F2D

@ -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);
}

@ -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();
}

Loading…
Cancel
Save