Add logging when index.
Merge pull request #19 from malcyL/malcyl-add-logging-when-index

Add logging when index.