Adding some logging to the invalidation paths.