Add ip and user-agent logging