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

make path short name look nicer

This commit is contained in:
Thomas Winget 2020-02-20 17:20:17 -05:00
parent 145efaf0bb
commit fae86281e9

View file

@ -440,8 +440,8 @@ namespace llarp
ctx->router = m_router;
auto self = GetSelf();
ctx->pathset = self;
std::string path_shortName = "[" + m_router->ShortName() + "-";
path_shortName += m_router->NextPathBuildNumber() + "]";
std::string path_shortName = "[path " + m_router->ShortName() + "-";
path_shortName = path_shortName + std::to_string(m_router->NextPathBuildNumber()) + "]";
auto path = std::make_shared< path::Path >(hops, self.get(), roles,
std::move(path_shortName));
LogInfo(Name(), " build ", path->ShortName(), ": ", path->HopsString());