[generator] Improve logging

- more logging for various stages start/finish
- silenced some too repetitive and common warnings (changed to LDEBUG)

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-09-04 17:34:18 +07:00
parent 9e38cff708
commit 76cb6803c2
17 changed files with 42 additions and 13 deletions

View File

@@ -52,6 +52,7 @@ void BoundaryPostcodeCollector::Collect(OsmElement const & el)
void BoundaryPostcodeCollector::Save()
{
LOG(LINFO, ("Saving postcode boundaries to", GetFilename()));
std::sort(m_data.begin(), m_data.end());
FileWriter writer(GetFilename());
@@ -60,6 +61,8 @@ void BoundaryPostcodeCollector::Save()
rw::WriteNonEmpty(writer, p.first);
rw::WriteVectorOfPOD(writer, p.second);
}
LOG(LINFO, ("Finished saving postcode boundaries"));
}
void BoundaryPostcodeCollector::MergeInto(BoundaryPostcodeCollector & collector) const