[generator] Improve logging, add comments

Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
Konstantin Pastbin
2025-08-07 18:32:25 +07:00
committed by Konstantin Pastbin
parent d7f73f4b9b
commit 5de22c6de8
5 changed files with 20 additions and 4 deletions

View File

@@ -114,8 +114,10 @@ public:
uint64_t const fileSize = m_fileReader.Size();
CHECK_EQUAL(fileSize % sizeof(LatLon), 0, ("Node's coordinates file is broken"));
LOG(LINFO, ("Start reading nodes storage from", name));
m_data.resize(fileSize / sizeof(LatLon));
m_fileReader.Read(0, m_data.data(), fileSize);
LOG(LINFO, ("Finished reading nodes storage"));
}
// PointStorageReaderInterface overrides:
@@ -404,9 +406,9 @@ IntermediateDataObjectsCache::GetOrCreatePointStorageReader(
std::lock_guard lock(m_mutex);
LOG(LINFO, ("Creating nodes storage reader:", strType, name));
auto res = m_objects.try_emplace(key, type, name);
if (res.second)
LOG(LINFO, ("Created nodes reader:", strType, name));
return res.first->second;
}