[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

@@ -199,6 +199,8 @@ void MetalinesBuilder::Finish()
void MetalinesBuilder::Save()
{
LOG(LINFO, ("Saving metalines to", GetFilename()));
std::unordered_multimap<size_t, std::shared_ptr<LineString>> keyToLineString;
FileReader reader(GetTmpFilename());
ReaderSource<FileReader> src(reader);
@@ -223,8 +225,7 @@ void MetalinesBuilder::Save()
}
}
LOG_SHORT(LINFO, ("Wrote", countLines, "metalines [with", countWays, "ways] with OSM IDs for the entire planet to",
GetFilename()));
LOG(LINFO, ("Finished saving metalines. Wrote", countLines, "metalines [with", countWays, "ways]"));
}
void MetalinesBuilder::OrderCollectedData()