Add logs in visual index handler