Add some logging in the index build.