mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
[core] Improve logging for routing sections loading
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
committed by
x7z4w
parent
2b41ce684f
commit
452f582d45
@@ -182,11 +182,11 @@ bool ReadSpeedCamsFromMwm(MwmValue const & mwmValue, SpeedCamerasMapT & camerasM
|
|||||||
}
|
}
|
||||||
catch (Reader::OpenException const &)
|
catch (Reader::OpenException const &)
|
||||||
{
|
{
|
||||||
LOG(LWARNING, (CAMERAS_INFO_FILE_TAG "section not found"));
|
LOG(LWARNING, (CAMERAS_INFO_FILE_TAG "section not found in", mwmValue.GetCountryFileName()));
|
||||||
}
|
}
|
||||||
catch (Reader::Exception const & e)
|
catch (Reader::Exception const & e)
|
||||||
{
|
{
|
||||||
LOG(LERROR, ("Error while reading", CAMERAS_INFO_FILE_TAG, "section.", e.Msg()));
|
LOG(LERROR, ("Error while reading", CAMERAS_INFO_FILE_TAG, "section in", mwmValue.GetCountryFileName(), ":", e.Msg()));
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -202,11 +202,11 @@ bool ReadRoadAccessFromMwm(MwmValue const & mwmValue, VehicleType vehicleType, R
|
|||||||
}
|
}
|
||||||
catch (Reader::OpenException const &)
|
catch (Reader::OpenException const &)
|
||||||
{
|
{
|
||||||
LOG(LWARNING, (ROAD_ACCESS_FILE_TAG, "section not found"));
|
LOG(LWARNING, (ROAD_ACCESS_FILE_TAG, "section not found in", mwmValue.GetCountryFileName()));
|
||||||
}
|
}
|
||||||
catch (Reader::Exception const & e)
|
catch (Reader::Exception const & e)
|
||||||
{
|
{
|
||||||
LOG(LERROR, ("Error while reading", ROAD_ACCESS_FILE_TAG, "section.", e.Msg()));
|
LOG(LERROR, ("Error while reading", ROAD_ACCESS_FILE_TAG, "section in", mwmValue.GetCountryFileName(), ":", e.Msg()));
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -236,11 +236,11 @@ bool ReadRoadPenaltyFromMwm(MwmValue const & mwmValue, VehicleType vehicleType,
|
|||||||
catch (Reader::OpenException const &)
|
catch (Reader::OpenException const &)
|
||||||
{
|
{
|
||||||
// This is expected for older mwm files - not an error
|
// This is expected for older mwm files - not an error
|
||||||
LOG(LDEBUG, (ROAD_PENALTY_FILE_TAG, "section not found - using legacy penalty system"));
|
LOG(LINFO, (ROAD_PENALTY_FILE_TAG, "section not found in", mwmValue.GetCountryFileName(), "- using legacy penalty system"));
|
||||||
}
|
}
|
||||||
catch (Reader::Exception const & e)
|
catch (Reader::Exception const & e)
|
||||||
{
|
{
|
||||||
LOG(LERROR, ("Error while reading", ROAD_PENALTY_FILE_TAG, "section.", e.Msg()));
|
LOG(LERROR, ("Error while reading", ROAD_PENALTY_FILE_TAG, "section in", mwmValue.GetCountryFileName(), ":", e.Msg()));
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user