Add logging to file indexing