forked from organicmaps/organicmaps
Add some logging.
This commit is contained in:
parent
c2f1668f33
commit
036b072800
2 changed files with 6 additions and 2 deletions
|
@ -71,7 +71,7 @@ namespace cache
|
|||
uint64_t const fileSize = m_file.Size();
|
||||
if (fileSize == 0) return;
|
||||
|
||||
LOG_SHORT(LINFO, ("Reading offsets started in file ", get_name()));
|
||||
LOG_SHORT(LINFO, ("Offsets reading is started for file ", get_name()));
|
||||
|
||||
try
|
||||
{
|
||||
|
@ -86,7 +86,7 @@ namespace cache
|
|||
|
||||
sort(m_memory.begin(), m_memory.end(), element_less_t());
|
||||
|
||||
LOG_SHORT(LINFO, ("Reading offsets finished"));
|
||||
LOG_SHORT(LINFO, ("Offsets reading is finished"));
|
||||
}
|
||||
|
||||
void write(uint64_t k, TValue const & v)
|
||||
|
|
|
@ -221,6 +221,8 @@ class points_in_map
|
|||
public:
|
||||
points_in_map(string const & name)
|
||||
{
|
||||
LOG(LINFO, ("Nodes reading is started"));
|
||||
|
||||
FileReader reader(name);
|
||||
uint64_t const count = reader.Size();
|
||||
|
||||
|
@ -234,6 +236,8 @@ public:
|
|||
|
||||
pos += sizeof(ll);
|
||||
}
|
||||
|
||||
LOG(LINFO, ("Nodes reading is finished"));
|
||||
}
|
||||
|
||||
bool GetPoint(uint64_t id, double & lat, double & lng) const
|
||||
|
|
Loading…
Add table
Reference in a new issue