Add logging to debug index issue