[dbg] Add debug message for adding file to index.