Added ip logging to apiv1