Log the $ip correctly here.