Fix build. Add logging to index handler.