Add log when failed to get resource.