[qt] Add relevant logging for pedestrian turns.

This commit is contained in:
Olga Khlopkova 2020-10-05 09:43:28 +03:00 committed by Vladimir Byko-Ianko
parent c1f7d2be1c
commit 3580c5b7b8

View file

@ -529,9 +529,18 @@ void DrawWidget::SubmitFakeLocationPoint(m2::PointD const & pt)
{
routing::FollowingInfo loc;
m_framework.GetRoutingManager().GetRouteFollowingInfo(loc);
LOG(LDEBUG, ("Distance:", loc.m_distToTarget, loc.m_targetUnitsSuffix, "Time:", loc.m_time,
"Turn:", routing::turns::GetTurnString(loc.m_turn), "(", loc.m_distToTurn, loc.m_turnUnitsSuffix,
") Roundabout exit number:", loc.m_exitNum));
if (m_framework.GetRoutingManager().GetCurrentRouterType() == routing::RouterType::Pedestrian)
{
LOG(LDEBUG, ("Distance:", loc.m_distToTarget, loc.m_targetUnitsSuffix, "Time:", loc.m_time,
"Pedestrian turn:", DebugPrint(loc.m_pedestrianTurn),
"Distance to turn:", loc.m_distToTurn, loc.m_turnUnitsSuffix));
}
else
{
LOG(LDEBUG, ("Distance:", loc.m_distToTarget, loc.m_targetUnitsSuffix, "Time:", loc.m_time,
"Turn:", routing::turns::GetTurnString(loc.m_turn), "(", loc.m_distToTurn,
loc.m_turnUnitsSuffix, ") Roundabout exit number:", loc.m_exitNum));
}
}
}