Log when removing from MwmValue cache.

Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
This commit is contained in:
Viktor Govako 2022-09-03 14:35:09 +03:00
parent 2cc92867d3
commit d97fa6d7e3

View file

@ -339,6 +339,7 @@ void MwmSet::UnlockValueImpl(MwmId const & id, unique_ptr<MwmValue> p, EventList
m_cache.push_back(make_pair(id, move(p)));
if (m_cache.size() > m_cacheSize)
{
LOG(LDEBUG, ("MwmValue max cache size reached! Added", id, "removed", m_cache.front().first));
ASSERT_EQUAL(m_cache.size(), m_cacheSize + 1, ());
m_cache.pop_front();
}