Adding log messages if the cache entries are inconsistent