Added log statement to CacheFactory.