Add more logging in cache module.