[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

@@ -33,7 +33,7 @@ AddressesHolder::AddressInfo FromFB(FeatureBuilder const & fb)
// - "addr:interpolation: No beg/end address point" = 89774
void LogWarning(std::string const & msg, uint64_t id)
{
LOG(LWARNING, ("addr:interpolation: " + msg, id));
LOG(LDEBUG, ("addr:interpolation: " + msg, id));
}
} // namespace
@@ -190,6 +190,8 @@ void AddressesCollector::CollectFeature(FeatureBuilder const & fb, OsmElement co
void AddressesCollector::Save()
{
LOG(LINFO, ("Saving addresses to", GetFilename()));
FileWriter writer(GetFilename());
for (auto const & e : m_interpolWays)
@@ -215,6 +217,8 @@ void AddressesCollector::Save()
rw::Write(writer, !beg->m_street.empty() ? beg->m_street : end->m_street);
rw::Write(writer, !beg->m_postcode.empty() ? beg->m_postcode : end->m_postcode);
}
LOG(LINFO, ("Finished saving addresses"));
}
void AddressesCollector::MergeInto(AddressesCollector & collector) const